Extends
EcsLibrary
Constructors
Constructor
new EcsLibrary(): EcsLibrary
Defined in: modules/ecs/src/server/index.ts:7
Returns
EcsLibrary
Overrides
BaseEcsLibrary.constructor
Properties
key
Defined in: modules/ecs/src/shared/ecs-library.ts:36 This library’s identity: its slot onreadonlykey:"ecs"
Context, its registry key, and
the identifier used to reference it in ordering relationships.
Inherited from
BaseEcsLibrary.key
Accessors
registry
Get Signature
get registry(): Registry
Defined in: modules/ecs/src/shared/ecs-library.ts:78
Returns
Registry
Inherited from
BaseEcsLibrary.registry
relationships
Get Signature
get relationships(): LibraryRelationships
Defined in: packages/common/dist/index.d.ts:512
Internal
Returns
LibraryRelationships
Inherited from
BaseEcsLibrary.relationships
Methods
__clear()
__clear(Defined in: packages/common/dist/index.d.ts:525 Called once after the tick loop stops._ctx):Promise<void>
Parameters
_ctx
Context
Returns
Promise<void>
Inherited from
BaseEcsLibrary.__clear
__editorInit()
__editorInit(Defined in: modules/ecs/src/shared/ecs-library.ts:60 Listens to the editor’s commands (ctx):Promise<void>
hot-reload, live mode).
Parameters
ctx
EditorInitContext
Returns
Promise<void>
Inherited from
BaseEcsLibrary.__editorInit
__events()
__events(Defined in: modules/ecs/src/shared/ecs-library.ts:70 Live mode: runs every tick, paused ones too, so the editor sees the world while paused._ctx):Promise<void>
Parameters
_ctx
Context
Returns
Promise<void>
Inherited from
BaseEcsLibrary.__events
__init()
__init(Defined in: modules/ecs/src/shared/ecs-library.ts:47 Called once, in dependency order, before the tick loop starts.ctx):Promise<void>
Parameters
ctx
InitContext
Returns
Promise<void>
Inherited from
BaseEcsLibrary.__init
__run()
__run(Defined in: modules/ecs/src/shared/ecs-library.ts:74 Called every tick, in run order, while the tick loop is active and not paused.ctx):Promise<void>
Parameters
ctx
Context
Returns
Promise<void>
Inherited from
BaseEcsLibrary.__run
expose()
expose(): EcsContextApi
Defined in: modules/ecs/src/shared/ecs-library.ts:83
Returns this library’s public contribution to Context[this.key].
Returns
EcsContextApi
Remarks
Return a plain object exposing only what game code should be able to reach — neverthis — so internal state and lifecycle hooks never leak
onto Context. Libraries with nothing to expose (headless libraries)
can leave this unimplemented; they simply won’t appear on Context.
Inherited from
BaseEcsLibrary.expose
throwNotInitializedError()
Defined in: packages/common/dist/index.d.ts:536protectedthrowNotInitializedError():never
Returns
never
Inherited from
BaseEcsLibrary.throwNotInitializedError