跳转到内容

AotSystemDecl

此内容尚不支持你的语言。

Defined in: ecs/aot/AotSystems.ts:23

One system’s declaration, as the build wrote it beside the module.

readonly optional commands?: boolean

Defined in: ecs/aot/AotSystems.ts:46

Whether the body appends a COMMAND record. From the body rather than the declaration: taking Commands() and never despawning writes nothing. Absent is a manifest older than this field — read it as true, because the road that cannot flush them fails silently.


readonly name: string

Defined in: ecs/aot/AotSystems.ts:24


readonly queries: readonly (readonly object[])[]

Defined in: ecs/aot/AotSystems.ts:27

One entry per declared Query, in the order the system names them.


readonly optional readers?: readonly object[]

Defined in: ecs/aot/AotSystems.ts:37

Event readers, and the query slot each one’s payloads go into. fields is the payload’s layout, in the order the compiled code reads it — the host flattens an object into exactly that order or the code reads a different field.


readonly resources: readonly object[]

Defined in: ecs/aot/AotSystems.ts:30

One per declared Res/ResMut. mut is what makes a host write the mirror back after the call — without it the write is silently dropped.


readonly symbol: string

Defined in: ecs/aot/AotSystems.ts:25


readonly optional writers?: readonly object[]

Defined in: ecs/aot/AotSystems.ts:39

Event writers, by the slot the appended record names.