struct IEntityEventHandler { enum EventValueType { Bool, Int, Float, Vector, Entity, String }; enum EventType { Input, Output }; struct SEventInfo { const char* name; EventType type; EventValueType valueType; const char* description; }; };
IEntityClass.h
enum EventType { Input, Output };
IEntityClass.h
enum EventValueType { Bool, Int, Float, Vector, Entity, String };
IEntityClass.h
Events info for this entity class.
struct SEventInfo { const char* name; EventType type; EventValueType valueType; const char* description; };
IEntityClass.h
Members |
Description |
const char* name; |
Name of event. |
EventType type; |
Input or Output event. |
EventValueType valueType; |
Type of event value. |
const char* description; |
Description of the event. |
virtual ~IEntityEventHandler();
virtual int GetEventCount() const = 0;
Return Number of events.
Returns number of events for this entity.
virtual bool GetEventInfo(int index, SEventInfo& info) const = 0;
Parameters |
Description |
nIndex |
Index of the event to retrieve, must be in 0 to GetEventCount()-1 range. |
Specified event description in SEventInfo structure.
Retrieve information about events of the entity.
virtual void GetMemoryUsage(ICrySizer * pSizer) const;
virtual void LoadEntityXMLEvents(IEntity* entity, const XmlNodeRef& xml) = 0;
Load event info into the entity.
virtual void RefreshEvents() = 0;
Refresh the class' event info.
virtual void SendEvent(IEntity* entity, const char* eventName) = 0;
Parameters |
Description |
IEntity* entity |
The entity to send the event to. |
const char* eventName |
Name of the event to send. |
Send the specified event to the entity.