Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Macros | Functions
event.cpp File Reference
#include "shared/game/event.hpp"

Macros

#define TO_STR(type)
 

Functions

std::ostream & operator<< (std::ostream &os, const Event &evt)
 
std::ostream & operator<< (std::ostream &os, const EventType &type)
 

Macro Definition Documentation

◆ TO_STR

#define TO_STR (   type)
Value:
case EventType::type: \
os << #type; \
break
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glad.h:1531

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  os,
const Event evt 
)

Allow us to std::cout an Event

TODO: actually output the data for the EventData

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  os,
const EventType type 
)

Override << so we can std::cout << EventType_var;