Methods
add Entity
add Entity ( entity ) : void
Returns void
add Resource
add Resource < T > ( type , ... args ) : T
Parameters
type : T | TTypeProto < T >
Rest
... args : readonly unknown []
Returns T
build Entity
build Entity ( ) : ICommandEntityBuilder
Returns ICommandEntityBuilder
clear Entities
clear Entities ( ) : void
Returns void
load
load ( prefab , options ? ) : number
Returns number
merge
merge ( world ) : number
Returns number
mutate Entity
mutate Entity ( entity , mutator ) : void
Parameters
mutator : ( ( entity ) => void | Promise < void > )
( entity ) : void | Promise < void >
Returns void | Promise < void >
Returns void
pop State
pop State ( ) : void
Returns void
push State
push State ( NewState ) : void
Returns void
queue Command
queue Command ( command ) : void
Returns void
remove Entity
remove Entity ( entity ) : void
Returns void
remove Group
remove Group ( handle ) : void
Returns void
remove Resource
remove Resource < T > ( type ) : void
Returns void
replace Resource
replace Resource < T > ( type , ... args ) : void
Parameters
type : T | TTypeProto < T >
Rest
... args : unknown []
Returns void
stop Run
stop Run ( ) : void
Returns void
Commands is an async interface, which aggregates commands for later execution. The primary usage is to issue commands during system runtime and have them take effect on a common sync point, like after all systems ran