script_system.h¶
| File Path | engine/include/conjure/scripting/script_system.h |
| API ↗ | Scripting, Scripts, components and the runtime |
The six EXCLUSIVE scripting systems. All managed execution happens inside them on the main thread, so scripts may mutate the world directly except inside a DOD query scope.
Forward Declarations¶
hot_reload_controller¶
Constants¶
Functions¶
Public¶
register_script_systems¶
register_script_systems¶[[nodiscard]] CONJURE_API core::result<void> register_script_systems(
ecs::scheduler &scheduler,
script_runtime &runtime,
hot_reload_controller *reload = nullptr);Registers scripting.frame_begin (FRAME_BEGIN: reload tick, flush), scripting.collision_dispatch and scripting.fixed_update (FIXED_UPDATE, dispatch before update), scripting.update (UPDATE), scripting.late_update (LATE_UPDATE) and scripting.frame_end (FRAME_END: flush). reload may be null; when set, frame_begin ticks it with the frame time. The runtime and controller must outlive the scheduler. Call once per scheduler: a second call returns NAME_CONFLICT from its first system and adds nothing.