SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Enumerations
GameDBSyncEvents.h File Reference
#include "Servers/InternalEvents.h"
#include "GameData/chardata_definitions.h"
#include <QDateTime>
Include dependency graph for GameDBSyncEvents.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CharacterUpdateData
 
struct  CostumeUpdateData
 
struct  RemoveCharacterRequestData
 
struct  RemoveCharacterResponseData
 
struct  GameAccountRequestData
 
struct  GameAccountResponseCostumeData
 
struct  GameAccountResponseCharacterData
 
struct  GameAccountResponseData
 
struct  CreateNewCharacterRequestData
 
struct  CreateNewCharacterResponseData
 
struct  GetEntityRequestData
 
struct  GetEntityResponseData
 
struct  WouldNameDuplicateRequestData
 
struct  WouldNameDuplicateResponseData
 
struct  GameDbErrorData
 
struct  SetClientOptionsData
 

Macros

#define ONE_WAY_MESSAGE(name)
 
#define SIMPLE_TWO_WAY_MESSAGE(name)
 A message without Request having additional data. More...
 
#define TWO_WAY_MESSAGE(name)
 A message with Request having additional data. More...
 

Enumerations

enum  GameDBEventTypes : uint32_t {
  evCharacterUpdate = Internal_EventTypes::evLAST_EVENT, evSetClientOptions, evCostumeUpdate, evRemoveCharacterRequest,
  evRemoveCharacterResponse, evGameAccountRequest, evGameAccountResponse, evWouldNameDuplicateRequest,
  evWouldNameDuplicateResponse, evCreateNewCharacterRequest, evCreateNewCharacterResponse, evSetCharacterRequest,
  evSetCharacterResponse, evGetEntityRequest, evGetEntityResponse, evGameDbError
}
 

Macro Definition Documentation

#define ONE_WAY_MESSAGE (   name)
Value:
struct name ## Message final : public InternalEvent\
{\
name ## Data m_data;\
name ## Message(name ## Data &&d,uint64_t token) : InternalEvent(GameDBEventTypes::ev ## name),m_data(d) {session_token(token);}\
};
GameDBEventTypes
Definition: GameDBSyncEvents.h:15
Definition: InternalEvents.h:39
uint64_t session_token() const
Definition: InternalEvents.h:46
#define SIMPLE_TWO_WAY_MESSAGE (   name)
Value:
struct name ## Request final : public InternalEvent\
{\
name ## Message(uint64_t token) : InternalEvent(GameDBEventTypes::ev ## name ## Request) {session_token(token);}\
};\
struct name ## Response final : public InternalEvent\
{\
name ## Data m_data;\
name ## Response(name ## Data &&d,uint64_t token) : InternalEvent(GameDBEventTypes::ev ## name ## Response),m_data(d) {session_token(token);}\
};
GameDBEventTypes
Definition: GameDBSyncEvents.h:15
Definition: InternalEvents.h:39
uint64_t session_token() const
Definition: InternalEvents.h:46

A message without Request having additional data.

#define TWO_WAY_MESSAGE (   name)
Value:
struct name ## Request final : public InternalEvent\
{\
name ## RequestData m_data;\
name ## Request(name ## RequestData &&d,uint64_t token,EventProcessor *src = nullptr) :\
InternalEvent(GameDBEventTypes::ev ## name ## Request,src),m_data(d) {session_token(token);}\
};\
struct name ## Response final : public InternalEvent\
{\
name ## ResponseData m_data;\
name ## Response(name ## ResponseData &&d,uint64_t token) : InternalEvent(GameDBEventTypes::ev ## name ## Response),m_data(d) {session_token(token);}\
};
GameDBEventTypes
Definition: GameDBSyncEvents.h:15
Definition: InternalEvents.h:39
Definition: EventProcessor.h:13
uint64_t session_token() const
Definition: InternalEvents.h:46

A message with Request having additional data.

Enumeration Type Documentation

enum GameDBEventTypes : uint32_t
Enumerator
evCharacterUpdate 
evSetClientOptions 
evCostumeUpdate 
evRemoveCharacterRequest 
evRemoveCharacterResponse 
evGameAccountRequest 
evGameAccountResponse 
evWouldNameDuplicateRequest 
evWouldNameDuplicateResponse 
evCreateNewCharacterRequest 
evCreateNewCharacterResponse 
evSetCharacterRequest 
evSetCharacterResponse 
evGetEntityRequest 
evGetEntityResponse 
evGameDbError