Skip to main content

Interface: EcsSystem<Q, K>

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

Type Parameters

Q

Q extends readonly unknown[] = readonly unknown[]

K

K = null

Properties

query

query: KeysFromComponents<Q>

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


tags?

optional tags: TagKey[]

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

Methods

beforeQuery()?

optional beforeQuery(world): K

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

Parameters

world

EcsWorld

Returns

K


run()

run(components, world, beforeQueryResult): void

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

Parameters

components

QueryResult<Q>

world

EcsWorld

beforeQueryResult

K

Returns

void