|
UFO: Alien Invasion
|
Struct that defines one particular event with all its callbacks and data. More...
#include <e_main.h>

Data Fields | |
| const event_t | type |
| The type of this event. | |
| const char * | name |
| the name of this event (e.g. for logs) | |
| const char * | formatString |
| The format string that is used to write and parse this event. | |
| void(* | eventCallback )(const struct eventRegister_s *self, dbuffer *msg) |
| Callback that is executing the event. | |
| int(* | timeCallback )(const struct eventRegister_s *self, dbuffer *msg, eventTiming_t *eventTiming) |
| Callback that is returning the time that is needed to execute this event. | |
| bool(* | eventCheck )(const struct eventRegister_s *self, const dbuffer *msg) |
Called to determine if this event is ok to run at this point. Should check any conflicts with other ongoing events (see LE_LOCKED ). | |
Struct that defines one particular event with all its callbacks and data.
Callback that is executing the event.
| self | A pointer to this struct |
| msg | The buffer with the event data |
Definition at line 60 of file e_main.h.
Referenced by CL_ExecuteBattlescapeEvent(), and CL_ParseEvent().
| bool(* eventRegister_t::eventCheck) (const struct eventRegister_s *self, const dbuffer *msg) |
Called to determine if this event is ok to run at this point. Should check any conflicts with other ongoing events (see LE_LOCKED ).
true if OK to run, false if not. Definition at line 74 of file e_main.h.
Referenced by CL_CheckBattlescapeEvent().
| const char* eventRegister_t::formatString |
The format string that is used to write and parse this event.
Definition at line 54 of file e_main.h.
Referenced by CL_ActorAdd(), CL_ActorAppear(), CL_ActorClientAction(), CL_ActorDie(), CL_ActorDoShoot(), CL_ActorDoShootTime(), CL_ActorDoThrow(), CL_ActorDoTurn(), CL_ActorEndShoot(), CL_ActorReactionFireAbortShot(), CL_ActorReactionFireAbortShotTime(), CL_ActorReactionFireAddTarget(), CL_ActorReactionFireAddTargetTime(), CL_ActorReactionFireChange(), CL_ActorReactionFireRemoveTarget(), CL_ActorReactionFireRemoveTargetTime(), CL_ActorReactionFireTargetUpdate(), CL_ActorReactionFireTargetUpdateTime(), CL_ActorReservationChange(), CL_ActorResetClientAction(), CL_ActorRevitalised(), CL_ActorShootHidden(), CL_ActorShootHiddenTime(), CL_ActorStartShoot(), CL_ActorStateChange(), CL_ActorStats(), CL_ActorWound(), CL_AddBrushModel(), CL_AddEdict(), CL_CameraAppear(), CL_CenterView(), CL_DoorClose(), CL_DoorOpen(), CL_EntAppear(), CL_EntDestroy(), CL_EntPerish(), CL_Explode(), CL_InvAmmo(), CL_InvDel(), CL_InvReload(), CL_MoveView(), CL_NetReceiveItem(), CL_ParticleAppear(), CL_ParticleSpawnEvent(), CL_Reset(), CL_SoundEvent(), and GAME_NetSendItem().
| const char* eventRegister_t::name |
the name of this event (e.g. for logs)
Definition at line 50 of file e_main.h.
Referenced by CL_DelayBattlescapeEvent(), CL_ExecuteBattlescapeEvent(), CL_FilterBattlescapeEvents(), CL_GetEventTime(), CL_GetNextTime(), CL_LogEvent(), and CL_ParseEvent().
| int(* eventRegister_t::timeCallback) (const struct eventRegister_s *self, dbuffer *msg, eventTiming_t *eventTiming) |
Callback that is returning the time that is needed to execute this event.
| self | A pointer to this struct |
| msg | The buffer with the event data |
| eventTiming | The delta time value |
Definition at line 67 of file e_main.h.
Referenced by CL_GetEventTime().