AppContext
此内容尚不支持你的语言。
Defined in: 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: context.ts:56
editorBridge
Section titled “editorBridge”editorBridge:
EditorBridge|null=null
Defined in: context.ts:58
editorMode
Section titled “editorMode”editorMode:
boolean=false
Defined in: context.ts:69
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.
pendingSystems
Section titled “pendingSystems”
readonlypendingSystems:PendingSystemEntry[] =[]
Defined in: context.ts:57
playMode
Section titled “playMode”playMode:
boolean=false
Defined in: context.ts:70
wasmError
Section titled “wasmError”
readonlywasmError:WasmErrorState
Defined in: context.ts:59
Methods
Section titled “Methods”drainPendingSystems()
Section titled “drainPendingSystems()”drainPendingSystems():
PendingSystemEntry[]
Defined in: context.ts:73
Returns
Section titled “Returns”PendingSystemEntry[]
Drain all pending systems and clear the queue
reset()
Section titled “reset()”reset():
void
Defined in: context.ts:79
Returns
Section titled “Returns”void
Reset all mutable state for a new session