|
Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
|
#include <event.hpp>
Public Member Functions | |
| Event () | |
| Event (EntityID evt_source, EventType type, EventData data) | |
| DEF_SERIALIZE (Archive &ar, const unsigned int version) | |
Data Fields | |
| EntityID | evt_source |
| who is attempting to trigger this event (if client -> server) or who is triggering this event (if server -> client) More... | |
| EventType | type |
| The type of event. This actually might not be needed because I think boost::variant has a tag built in, but We're already using it everywhere... More... | |
| EventData | data |
| All of the different kinds of event data that you might have. Depending on the value of type, you should look at the data associated with that type of event. More... | |
Struct to represent any possible event that could happen in our game.
|
inline |
|
inline |
| EventData Event::data |
All of the different kinds of event data that you might have. Depending on the value of type, you should look at the data associated with that type of event.
| EntityID Event::evt_source |
who is attempting to trigger this event (if client -> server) or who is triggering this event (if server -> client)
| EventType Event::type |
The type of event. This actually might not be needed because I think boost::variant has a tag built in, but We're already using it everywhere...