|
Nebula
|
Public Member Functions | |
| virtual Nebula.Game.FrameEvent[] | AcceptedEvents () |
| Override in subclass to tell the property manager which methods to call for this class. | |
| virtual System.Type[] | AcceptedMessages () |
| Override in subclass. | |
| virtual void | OnMessage (in Msg msg) |
| Called when a message is sent to the property's associated entity. | |
| override string | ToString () |
| String representation of this property. | |
| virtual void | OnActivate () |
| Called when the property is attached to an entity, or when Property.Active is changed to true. | |
| virtual void | OnDeactivate () |
| Called when the property is detached from an entity, or when Property.Active is changed to false. | |
| virtual void | OnBeginFrame () |
| Called once every frame at the beginning of the frame. | |
| virtual void | OnFrame () |
| Called once every frame. | |
| virtual void | OnEndFrame () |
| Called once every frame at the end of the frame. | |
| void | Destroy () |
| Destroys the property. | |
Properties | |
| bool | Active [get, set] |
| Activate or deactivate property This is not trivial and can potentially be costly. | |
| Entity | Entity [get, set] |
| The entity that owns this property. | |
| bool | IsValid [get] |
| Checks if the property is valid (attached to an entity). | |
Private Attributes | |
| bool | active = false |
| Entity | entity = null |
|
inlinevirtual |
Override in subclass to tell the property manager which methods to call for this class.
|
inlinevirtual |
Override in subclass.
|
inline |
Destroys the property.
You should not call this manually, it is called automatically by destroying an entity, or removing the property
|
inlinevirtual |
Called when the property is attached to an entity, or when Property.Active is changed to true.
Override in subclass.
|
inlinevirtual |
Called once every frame at the beginning of the frame.
Override in subclass. The property AcceptedEvents must return the Event code for this method to be called at all.
|
inlinevirtual |
Called when the property is detached from an entity, or when Property.Active is changed to false.
Override in subclass.
|
inlinevirtual |
Called once every frame at the end of the frame.
Override in subclass. The property AcceptedEvents must return the Event code for this method to be called at all.
|
inlinevirtual |
Called once every frame.
Override in subclass. The property AcceptedEvents must return the Event code for this method to be called at all.
|
inlinevirtual |
Called when a message is sent to the property's associated entity.
|
inline |
String representation of this property.
|
private |
|
private |
|
getset |
Activate or deactivate property This is not trivial and can potentially be costly.
|
getset |
The entity that owns this property.
You cannot change the entity after one has been associated with the property.
|
get |
Checks if the property is valid (attached to an entity).