Changeset View
Changeset View
Standalone View
Standalone View
source/rdb/Enums.h
#if ( !defined(RDB_ENUMS_H) || defined(GENERATE_ENUM_STRINGS) ) | |||||
#if (!defined(GENERATE_ENUM_STRINGS)) | |||||
#define RDB_ENUMS_H | |||||
#endif | |||||
#include "EnumToString.h" | |||||
namespace RdbEnums { | |||||
BEGIN_ENUM(ReplayReviewStatus) { | |||||
DECL_ENUM_ELEMENT(ReplayReviewStatus, AccessDenied), | |||||
DECL_ENUM_ELEMENT(ReplayReviewStatus, Unreviewed), | |||||
DECL_ENUM_ELEMENT(ReplayReviewStatus, Accepted), | |||||
DECL_ENUM_ELEMENT(ReplayReviewStatus, Rejected) | |||||
} END_ENUM(, ReplayReviewStatus) | |||||
BEGIN_ENUM(SortMethod) { | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Time, 0x0), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Players, 0x1), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, MapName, 0x2), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Size, 0x3), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Population, 0x4), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Duration, 0x5), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Id, 0x6), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Submitter, 0x7), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, Title, 0x8), | |||||
DECL_ENUM_ELEMENT_V(SortMethod, SubmissionDate, 0x9) | |||||
} END_ENUM(, SortMethod) | |||||
BEGIN_ENUM(MessageType) { | |||||
DECL_ENUM_ELEMENT(MessageType, Error), | |||||
DECL_ENUM_ELEMENT(MessageType, Success), | |||||
DECL_ENUM_ELEMENT(MessageType, Login), | |||||
DECL_ENUM_ELEMENT(MessageType, Register), | |||||
DECL_ENUM_ELEMENT(MessageType, QueryForReplayList), | |||||
DECL_ENUM_ELEMENT(MessageType, QueryForReplayDatas), | |||||
DECL_ENUM_ELEMENT(MessageType, ReplayDatas) | |||||
} END_ENUM(, MessageType) | |||||
} | |||||
#endif |
Wildfire Games · Phabricator