FModularSceneSystem
One world system contributed by a plugin (or a below-Game module). Mirrors Scene's internal SceneSystemEntry: which registration set the system belongs to (base = edit mode, simulation, runtime), where it ticks outside World::Update (editorTick/simulationTick are explicit sequence indices, -1 = skip), and what gets torn down on Runtime/Simulation stop. The factory hooks are plain function pointers so the descriptor stays trivially copyable across the DLL boundary.
- Module
- ECS
- Header
#include "ECS/SceneSystemRegistry.h"- Namespace
Mowo
ABI WARNING: plugins construct this struct with THEIR compiled layout and the registry copies it with the engine's. Growing the struct therefore requires rebuilding every plugin binary — a stale plugin registers a short struct and the engine reads garbage past its end (a call through a junk function pointer, first seen when OnSceneAttach was added). New fields go at the END, every field must be null-tolerated, and MOWO_MODULE_API_VERSION (Core/FModuleManager.h) must be bumped so the loader refuses a plugin compiled against the old layout instead of copying past its end.
Properties
| Type | Name | Description |
|---|---|---|
std::string | Name | |
bool | Base | Default false. |
bool | Simulation | Default false. |
bool | Runtime | Default false. |
int32_t | EditorTick | Default -1. |
int32_t | SimulationTick | Default -1. |
bool | RemoveOnRuntimeStop | Default false. |
bool | RemoveOnSimulationStop | Default false. |
Public functions
| Returns | Name | Description |
|---|---|---|
void | ||
void | ||
void | ||
void | Called after every ensure pass with the owning Scene — the modular analogue of the SetSceneHooks/SetScene wiring blocks, so a plugin system can spawn/destroy through the Scene's entity metadata instead of raw World entities. |
Function details
void
void (*Ensure)(World&) = nullptrvoid
void (*Update)(World&, float) = nullptrvoid
void (*Remove)(World&) = nullptrvoid
void (*OnSceneAttach)(World&, Scene&) = nullptrCalled after every ensure pass with the owning Scene — the modular analogue of the SetSceneHooks/SetScene wiring blocks, so a plugin system can spawn/destroy through the Scene's entity metadata instead of raw World entities. Must be idempotent: Initialize, runtime start and simulation start each re-run it. Scene is opaque down here — the callback is only ever invoked from Scene itself.