Skip to content

CommandsInstance

Defined in: commands.ts:133

new CommandsInstance(world, resources): CommandsInstance

Defined in: commands.ts:139

World

ResourceStorage

CommandsInstance

despawn(entity): this

Defined in: commands.ts:154

number

this


entity(entity): EntityCommands

Defined in: commands.ts:150

number

EntityCommands


flush(): void

Defined in: commands.ts:185

void


insertResource<T>(resource, value): this

Defined in: commands.ts:159

T

ResourceDef<T>

T

this


queueInsert(entity, component, data): void

Defined in: commands.ts:168

number

AnyComponentDef

unknown

void


queueRemove(entity, component): void

Defined in: commands.ts:172

number

AnyComponentDef

void


spawn(name?): EntityCommands

Defined in: commands.ts:144

string

EntityCommands


spawnImmediate(components, entityRef, name?): void

Defined in: commands.ts:176

SpawnComponentEntry[]

number

string

void