AppContext
此内容尚不支持你的语言。
Defined in: ecs/context.ts:55
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AppContext():
AppContext
Returns
Section titled “Returns”AppContext
Properties
Section titled “Properties”componentRegistry
Section titled “componentRegistry”
readonlycomponentRegistry:Map<string,any>
Defined in: ecs/context.ts:56
editorBridge
Section titled “editorBridge”editorBridge:
EditorBridge|null=null
Defined in: ecs/context.ts:61
editorMode
Section titled “editorMode”editorMode:
boolean=false
Defined in: ecs/context.ts:72
Run mode. editorMode = an editor host is attached (vs a standalone
runtime); playMode = within an editor, gameplay is running. Gameplay
systems gate on these via playModeOnly (env.ts). Kept here so
all app-scoped mutable state lives on one context (with componentRegistry
/ editorBridge / pendingSystems) rather than in a separate module global,
so isolated Apps get isolated run modes.
pendingPlugins
Section titled “pendingPlugins”
readonlypendingPlugins:unknown[] =[]
Defined in: ecs/context.ts:60
Plugins a project bundle installed at module level, drained with the systems: a bundle is imported before an App exists.
pendingSystems
Section titled “pendingSystems”
readonlypendingSystems:PendingSystemEntry[] =[]
Defined in: ecs/context.ts:57
playMode
Section titled “playMode”playMode:
boolean=false
Defined in: ecs/context.ts:73
wasmError
Section titled “wasmError”
readonlywasmError:WasmErrorState
Defined in: ecs/context.ts:62
Methods
Section titled “Methods”drainPendingPlugins()
Section titled “drainPendingPlugins()”drainPendingPlugins():
unknown[]
Defined in: ecs/context.ts:82
Returns
Section titled “Returns”unknown[]
Drain all pending plugins and clear the queue
drainPendingSystems()
Section titled “drainPendingSystems()”drainPendingSystems():
PendingSystemEntry[]
Defined in: ecs/context.ts:76
Returns
Section titled “Returns”PendingSystemEntry[]
Drain all pending systems and clear the queue
reset()
Section titled “reset()”reset():
void
Defined in: ecs/context.ts:87
Returns
Section titled “Returns”void
Reset all mutable state for a new session