EntityBus
Summary
Properties
Methods
Operators
Properties
entities
Entity{}
components
Component{}
peers
EntityBusPeer{}
parent
EntityBus | nil
parentRepresentative
DataContainer | nil
data
DataContainer | nil
dataId
NetworkDataId
instanceId
int
networkId
int
Methods
FireEvent
FireEvent(targetData: DataContainer, eventId: int)
Parameters
FireEvent
FireEvent(targetData: DataContainer, eventName: string)
Parameters
FireEvent
FireEvent(targetData: DataContainer, event: EntityEvent)
Parameters
GetEntity
GetEntity(forData: DataContainer): Entity | Component | nil
Parameters
Returns
PropertyChanged
PropertyChanged(propertyId: int)
Parameters
Name |
Type |
Description |
propertyId |
int |
|
PropertyChanged
PropertyChanged(propertyId: int, value: any)
Parameters
Name |
Type |
Description |
propertyId |
int |
|
value |
any |
|
PropertyChanged
PropertyChanged(propertyName: string)
Parameters
Name |
Type |
Description |
propertyName |
string |
|
PropertyChanged
PropertyChanged(propertyName: string, value: any)
Parameters
Name |
Type |
Description |
propertyName |
string |
|
value |
any |
|
GetLinks
GetLinks(toData: DataContainer, fieldId: int): (Entity | Component){}
Parameters
Returns
GetLinks
GetLinks(toData: DataContainer, fieldName: string): (Entity | Component){}
Parameters
Returns
RegisterEventCallback
RegisterEventCallback(callback: callable): int
Parameters
Name |
Type |
Description |
callback |
callable |
A callback in the form function(bus: EntityBus, data: DataContainer, event: EntityEvent): bool . |
Returns
RegisterEventCallback
RegisterEventCallback(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, bus: EntityBus, data: DataContainer, event: EntityEvent): bool . |
Returns
UnregisterEventCallback
UnregisterEventCallback(handle: int)
Parameters
Name |
Type |
Description |
handle |
int |
|
Operators
operator==
operator==(rhs: EntityBus): bool
Parameters
Returns