tec::ServerGameStateQueue
#include <server-game-state-queue.hpp>
Inherits from tec::EventQueue< EntityCreated >, tec::EventQueue< EntityDestroyed >
Public Functions
Name | |
---|---|
ServerGameStateQueue(ServerStats & s) | |
virtual void | On(eid , std::shared_ptr< EntityCreated > data) override |
virtual void | On(eid entity_id, std::shared_ptr< EntityDestroyed > data) override |
void | ProcessEventQueue() |
GameState & | GetBaseState() |
void | SetBaseState(GameState && new_state) |
Public Attributes
Name | |
---|---|
ServerStats & | stats |
Additional inherited members
Public Functions inherited from tec::EventQueue< EntityCreated >
Name | |
---|---|
EventQueue() | |
EventQueue(eid entity_id) | |
virtual | ~EventQueue() |
void | QueueEvent(Event< T > && e) |
Protected Attributes inherited from tec::EventQueue< EntityCreated >
Name | |
---|---|
Queue< Event< T > > * | read_event_queue |
std::atomic< Queue< Event< T > > * > | write_event_queue |
Public Functions inherited from tec::EventQueue< EntityDestroyed >
Name | |
---|---|
EventQueue() | |
EventQueue(eid entity_id) | |
virtual | ~EventQueue() |
void | QueueEvent(Event< T > && e) |
Protected Attributes inherited from tec::EventQueue< EntityDestroyed >
Name | |
---|---|
Queue< Event< T > > * | read_event_queue |
std::atomic< Queue< Event< T > > * > | write_event_queue |
Public Functions Documentation
function ServerGameStateQueue
ServerGameStateQueue(
ServerStats & s
)
function On
virtual void On(
eid ,
std::shared_ptr< EntityCreated > data
) override
Reimplements: tec::EventQueue::On
function On
virtual void On(
eid entity_id,
std::shared_ptr< EntityDestroyed > data
) override
Reimplements: tec::EventQueue::On
function ProcessEventQueue
void ProcessEventQueue()
function GetBaseState
inline GameState & GetBaseState()
function SetBaseState
inline void SetBaseState(
GameState && new_state
)
Public Attributes Documentation
variable stats
ServerStats & stats;
Updated on 2022-07-24 at 19:27:35 +0000