Skip to main content

siglus_scene_vm/runtime/forms/
mod.rs

1//! Form (numeric command) dispatchers.
2//!
3//! In the original Siglus engine, a large set of operations are routed through a
4//! single global switch ("forms"), and each form may further dispatch on a
5//! sub-op ID.
6//!
7//! This module provides explicit form dispatch aligned to the original engine structure.
8
9pub mod bgm;
10pub mod bgm_table;
11pub mod codes;
12pub mod counter;
13pub mod excall;
14pub mod global;
15pub mod input;
16pub mod int_event;
17pub mod int_list;
18pub mod key;
19pub mod keylist;
20pub mod koe_st;
21pub mod mouse;
22pub mod mov;
23pub mod msgbk;
24pub mod object_event;
25pub mod pcm;
26pub mod pcmch;
27pub mod pcmevent;
28pub mod prop_access;
29pub mod screen;
30pub mod se;
31pub mod stage;
32pub mod str_list;
33pub mod timewait;
34
35// Runtime forms implemented from the original the original implementation source (IDs are configured externally).
36pub mod cgtable;
37pub mod database;
38pub mod editbox;
39pub mod file;
40pub mod g00buf;
41pub mod mask;
42pub mod math;
43pub mod steam;
44
45pub mod frame_action;
46pub mod frame_action_ch;
47pub mod script;
48pub mod syscom;
49pub mod system;
50
51use anyhow::Result;
52
53use crate::runtime::{CommandContext, Value};
54
55pub fn dispatch_form(ctx: &mut CommandContext, form_id: u32, args: &[Value]) -> Result<bool> {
56    global::dispatch_global_form(ctx, form_id, args)
57}