Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
Event Struct Reference

#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...
 

Detailed Description

Struct to represent any possible event that could happen in our game.

Constructor & Destructor Documentation

◆ Event() [1/2]

Event::Event ( )
inline

◆ Event() [2/2]

Event::Event ( EntityID  evt_source,
EventType  type,
EventData  data 
)
inline

Member Function Documentation

◆ DEF_SERIALIZE()

Event::DEF_SERIALIZE ( Archive &  ar,
const unsigned int  version 
)
inline

Field Documentation

◆ data

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.

◆ evt_source

EntityID Event::evt_source

who is attempting to trigger this event (if client -> server) or who is triggering this event (if server -> client)

◆ type

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...


The documentation for this struct was generated from the following file: