Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime scaffolding for command execution.

Scene bytecode is dispatched by numeric form/owner codes. Siglus user commands are script procedures entered by SceneVm through Scene.pck.

Re-exports§

pub use opcode::OpCode;

Modules§

constants
Canonical engine constants used by the runtime.
forms
Form (numeric command) dispatchers.
game_display_info
Game display information shared by bundle/mobile platform UI code.
game_title
Game title resolution shared by runtime and platform UI integration.
gan
GAN animation support (ported from the original the original implementation implementation).
globals
graphics
Graphics runtime: bridges VM stage/object operations to LayerManager + ImageManager.
input
Runtime input state (winit-agnostic).
int_event
Integer event (linear interpolation / loop / turn) used by a few engine subsystems.
native_ui
Platform UI bridge for runtime modal operations.
net
opcode
Numeric opcode/form plumbing.
string_semantics
String operations with the same indexing model as the original Windows TSTR implementation.
tables
Gameexe-driven table loading.
tonecurve
twitter
Desktop Siglus Twitter integration.
ui
Message-window rendering state projected from runtime MWND state.
unknown
Runtime recorder for unmapped numeric codes, names, and load-time notes.
wait
VM wait/blocking state.

Structs§

Command
CommandContext
DebugActiveTextureEntry
ExcallCompatState
State used by EXCALL runtime helpers.
IntVecPool
Spare Vec<i32> buffers for element paths and object chains, which the VM makes and drops for every property access: reusing them saves an allocation and a free each time (a tenth of the VM’s frame time in particle scripts, more with the console allocators).
LocalSaveSnapshot
Engine-side cache mirroring the C++ S_tnm_local_save (a.k.a. Gp_eng->m_local_save). Populated by GLOBAL_SAVEPOINT (tnm_save_local) and after a successful load (tnm_load_local_on_file). All save-to-file paths (normal / quick / end) must pull from this cache instead of re-serializing the live runtime.
RuntimeLoadRequest
RuntimeSaveRequest
VmCallMeta

Enums§

ProcKind
Cooperative script-process boundary, mirroring Siglus’ TNM_PROC_TYPE_* model at the VM/runtime boundary.
RuntimeSaveKind
Value

Traits§

ExternalFormHandler
Optional external handler for numeric forms.
FrameCaptureBackend
GPU service for original-engine capture commands. Captures must pass through the same render graph as presentation so meshes, depth, fog and shader state are preserved.

Functions§

dispatch
Dispatch a decoded numeric form command.
dispatch_form_code

Type Aliases§

FrameCaptureBackendRef