r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
Event.hpp File Reference

Event structures and types for event-driven communication. More...

#include <chrono>
#include <cstdint>
#include <unordered_map>
#include <vector>
+ Include dependency graph for Event.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  utl::EventConnect
 
class  utl::Event
 Event structure for inter-component communication. More...
 
class  utl::EventStats
 Event statistics structure. More...
 

Namespaces

namespace  utl
 

Enumerations

enum class  utl::EventType : std::uint32_t {
  utl::WORLD_STATE_RECEIVED = 0x1000 , utl::ENTITY_EVENTS_RECEIVED = 0x1001 , utl::PLAYER_CONNECTED = 0x1002 , utl::PLAYER_DISCONNECTED = 0x1003 ,
  utl::PLAYER_INPUT_RECEIVED = 0x1010 , utl::ENTITY_EVENT_RECEIVED = 0x1011 , utl::CONNECTION_ACCEPTED = 0x1020 , utl::CONNECTION_REJECTED = 0x1021 ,
  utl::SERVER_DISCONNECTED = 0x1022 , utl::SEND_PLAYER_INPUT = 0x2000 , utl::SEND_ENTITY_EVENT = 0x2001 , utl::SEND_ENTITY_EVENTS = 0x2002 ,
  utl::BROADCAST_WORLD_STATE = 0x2003 , utl::BROADCAST_TO_CLIENTS = 0x2004 , utl::SEND_TO_CLIENT = 0x2010 , utl::DISCONNECT_CLIENT = 0x2011 ,
  utl::REQUEST_CONNECT = 0x2020 , utl::REQUEST_DISCONNECT = 0x2021 , utl::SERVER_START = 0x3000 , utl::SERVER_STOP = 0x3001 ,
  utl::SERVER_STATUS_UPDATE = 0x3002 , utl::LOBBY_LIST_REQUEST = 0x4000 , utl::LOBBY_LIST_RESPONSE = 0x4001 , utl::LOBBY_CREATE = 0x4010 ,
  utl::LOBBY_CREATE_RESPONSE = 0x4011 , utl::LOBBY_JOIN = 0x4020 , utl::LOBBY_JOIN_RESPONSE = 0x4021 , utl::LOBBY_LEAVE = 0x4030 ,
  utl::LOBBY_UPDATE = 0x4040 , utl::GAME_START = 0x4050 , utl::GAME_OVER = 0x4060
}
 Event types for inter-component communication. More...
 
enum class  utl::EventPriority : std::uint8_t { utl::LOW = 0 , utl::NORMAL = 1 , utl::HIGH = 2 , utl::CRITICAL = 3 }
 Event priority levels. More...
 

Variables

static constexpr std::uint32_t utl::NETWORK_CLIENT = 1
 
static constexpr std::uint32_t utl::NETWORK_SERVER = 2
 
static constexpr std::uint32_t utl::GAME_LOGIC = 3
 
static constexpr std::uint32_t utl::RENDERING_ENGINE = 4
 

Detailed Description

Event structures and types for event-driven communication.

Definition in file Event.hpp.