Skip to main content

Interface: EcsSystem<Q, K>

Defined in: ecs/ecs-system.ts:4

Type Parameters

Q

Q extends readonly unknown[] = readonly unknown[]

K

K = null

Properties

query

query: KeysFromComponents<Q>

Defined in: ecs/ecs-system.ts:8


tags?

optional tags: TagKey[]

Defined in: ecs/ecs-system.ts:9

Methods

beforeQuery()?

optional beforeQuery(world): K

Defined in: ecs/ecs-system.ts:11

Parameters

world

EcsWorld

Returns

K


cleanupEntities()?

optional cleanupEntities(queryResult, world): void

Defined in: ecs/ecs-system.ts:12

Parameters

queryResult

QueryResult<Q>

world

EcsWorld

Returns

void


run()

run(queryResult, world, beforeQueryResult): void

Defined in: ecs/ecs-system.ts:10

Parameters

queryResult

QueryResult<Q>

world

EcsWorld

beforeQueryResult

K

Returns

void