GameEntity
Inherits from SpatialEntity
Summary
Constructors
Properties
Methods
Constructors
GameEntity
GameEntity(other: EntityBusPeer)
Parameters
GameEntity
GameEntity(other: Entity)
Parameters
| Name |
Type |
Description |
| other |
Entity |
|
GameEntity
GameEntity(other: SpatialEntity)
Parameters
Properties
updateInterval
int
Methods
Spawn
Spawn(transform: LinearTransform, fireEnableEvent: bool)
Parameters
RegisterSpawnCallback
RegisterSpawnCallback(callback: callable): int
Parameters
| Name |
Type |
Description |
| callback |
callable |
A callback in the form function(entity: Entity): bool. |
Returns
RegisterSpawnCallback
RegisterSpawnCallback(context: any, callback: callable): int
Parameters
| Name |
Type |
Description |
| context |
any |
A context value to pass to the callback. |
| callback |
callable |
A callback in the form function(context: any, entity: Entity): bool. |
Returns
UnregisterSpawnCallback
UnregisterSpawnCallback(handle: int)
Parameters
| Name |
Type |
Description |
| handle |
int |
|
RegisterUnspawnCallback
RegisterUnspawnCallback(callback: callable): int
Parameters
| Name |
Type |
Description |
| callback |
callable |
A callback in the form function(entity: Entity): bool. |
Returns
RegisterUnspawnCallback
RegisterUnspawnCallback(context: any, callback: callable): int
Parameters
| Name |
Type |
Description |
| context |
any |
A context value to pass to the callback. |
| callback |
callable |
A callback in the form function(context: any, entity: Entity): bool. |
Returns
UnregisterUnspawnCallback
UnregisterUnspawnCallback(handle: int)
Parameters
| Name |
Type |
Description |
| handle |
int |
|