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

#include <event.hpp>

Public Member Functions

 SpawnEntityEvent ()
 
 SpawnEntityEvent (EntityID new_id, int entity_type)
 
 DEF_SERIALIZE (Archive &ar, const unsigned int version)
 

Data Fields

EntityID new_id
 Id of the new entity, if the server is sending this down. Ignored, if this is a client request. More...
 
int entity_type
 What kind of entity to spawn. More...
 

Detailed Description

Event for the creation of a new Entity

Constructor & Destructor Documentation

◆ SpawnEntityEvent() [1/2]

SpawnEntityEvent::SpawnEntityEvent ( )
inline

◆ SpawnEntityEvent() [2/2]

SpawnEntityEvent::SpawnEntityEvent ( EntityID  new_id,
int  entity_type 
)
inline

Member Function Documentation

◆ DEF_SERIALIZE()

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

Field Documentation

◆ entity_type

int SpawnEntityEvent::entity_type

What kind of entity to spawn.

◆ new_id

EntityID SpawnEntityEvent::new_id

Id of the new entity, if the server is sending this down. Ignored, if this is a client request.


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