Skip to main content
Defined in: modules/ecs/src/shared/editor-world.ts:58 Arguments of the ECS commands the editor sends while playing.

Properties

ecs-add-component

ecs-add-component: [number, string, EditorValue[]]
Defined in: modules/ecs/src/shared/editor-world.ts:62 Adds a component of a class the game already used: entity id, class name, arguments.

ecs-remove-component

ecs-remove-component: [number, string]
Defined in: modules/ecs/src/shared/editor-world.ts:63

ecs-remove-entity

ecs-remove-entity: [number]
Defined in: modules/ecs/src/shared/editor-world.ts:65

ecs-set-component

ecs-set-component: [number, string, string, EditorValue]
Defined in: modules/ecs/src/shared/editor-world.ts:60 Sets one field of a component: entity id, component name, field, JSON value.

ecs-set-system-enabled

ecs-set-system-enabled: [number, boolean]
Defined in: modules/ecs/src/shared/editor-world.ts:67 Pauses a system (index in run order), or runs it again.

ecs-spawn-entity

ecs-spawn-entity: []
Defined in: modules/ecs/src/shared/editor-world.ts:64