1#ifndef GAME_SERVER_SCOREWORKER_H
2#define GAME_SERVER_SCOREWORKER_H
282 bool SamePlayers(
const std::vector<std::string> *pvSortedNames);
284 static bool GetSqlTop5Team(
IDbConnection *pSqlServer,
bool *pEnd,
char *pError,
int ErrorSize,
char (*paMessages)[512],
int *StartLine,
int Count);
Definition: scoreworker.h:224
float m_RecordFinishTime
Definition: scoreworker.h:258
float m_BestTime
Definition: scoreworker.h:254
float m_aBestTimeCp[NUM_CHECKPOINTS]
Definition: scoreworker.h:255
~CPlayerData()
Definition: scoreworker.h:230
void Set(float Time, const float aTimeCp[NUM_CHECKPOINTS])
Definition: scoreworker.h:241
int m_RecordStopTick
Definition: scoreworker.h:257
void SetBestTimeCp(const float aTimeCp[NUM_CHECKPOINTS])
Definition: scoreworker.h:248
CPlayerData()
Definition: scoreworker.h:226
void Reset()
Definition: scoreworker.h:232
Definition: connection.h:19
Definition: gamecontroller.h:19
Write
Definition: connection_pool.h:35
@ MAX_CHECKPOINTS
Definition: protocol.h:90
@ MAX_CLIENTS
Definition: protocol.h:88
@ MAX_NAME_LENGTH
Definition: protocol.h:97
@ MAX_MAP_LENGTH
Definition: map.h:12
@ TIMESTAMP_STR_LENGTH
Definition: scoreworker.h:23
@ NUM_CHECKPOINTS
Definition: scoreworker.h:22
Definition: scoreworker.h:67
float m_CurrentRecord
Definition: scoreworker.h:72
CScoreLoadBestTimeResult()
Definition: scoreworker.h:68
Definition: scoreworker.h:27
union CScorePlayerResult::@281 m_Data
int m_Birthday
Definition: scoreworker.h:52
void SetVariant(Variant v)
Definition: scoreworker.cpp:23
CScorePlayerResult()
Definition: scoreworker.cpp:18
char m_aBroadcast[1024]
Definition: scoreworker.h:47
@ MAX_MESSAGES
Definition: scoreworker.h:32
char m_aReason[VOTE_REASON_LENGTH]
Definition: scoreworker.h:57
char m_aRequestedPlayer[MAX_NAME_LENGTH]
Definition: scoreworker.h:53
char m_aaMessages[MAX_MESSAGES][512]
Definition: scoreworker.h:46
char m_aServer[32+1]
Definition: scoreworker.h:58
struct CScorePlayerResult::@281::@282 m_Info
char m_aMap[MAX_MAP_LENGTH+1]
Definition: scoreworker.h:59
enum CScorePlayerResult::Variant m_MessageKind
struct CScorePlayerResult::@281::@284 m_MapVote
std::optional< float > m_Time
Definition: scoreworker.h:50
Variant
Definition: scoreworker.h:36
@ PLAYER_TIMECP
Definition: scoreworker.h:42
@ BROADCAST
Definition: scoreworker.h:39
@ DIRECT
Definition: scoreworker.h:37
@ MAP_VOTE
Definition: scoreworker.h:40
@ ALL
Definition: scoreworker.h:38
@ PLAYER_INFO
Definition: scoreworker.h:41
float m_aTimeCp[NUM_CHECKPOINTS]
Definition: scoreworker.h:51
Definition: scoreworker.h:104
char m_aMessage[512]
Definition: scoreworker.h:113
CScoreRandomMapResult(int ClientId)
Definition: scoreworker.h:105
char m_aMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:112
int m_ClientId
Definition: scoreworker.h:111
Definition: scoreworker.h:152
int m_RequestingPlayer
Definition: scoreworker.h:171
char m_aMessage[512]
Definition: scoreworker.h:168
CSaveTeam m_SavedTeam
Definition: scoreworker.h:170
enum CScoreSaveResult::@291 m_Status
CUuid m_SaveId
Definition: scoreworker.h:172
@ LOAD_FAILED
Definition: scoreworker.h:166
@ SAVE_FAILED
Definition: scoreworker.h:164
@ SAVE_SUCCESS
Definition: scoreworker.h:162
@ LOAD_SUCCESS
Definition: scoreworker.h:165
char m_aBroadcast[512]
Definition: scoreworker.h:169
CScoreSaveResult(int PlayerId)
Definition: scoreworker.h:153
Definition: scoreworker.h:288
static bool LoadBestTime(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:144
static bool LoadPlayerTimeCp(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:255
static bool RandomUnfinishedMap(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1552
static bool ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1293
static bool ShowTopPoints(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1453
static bool MapVote(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:305
static bool SaveTeam(IDbConnection *pSqlServer, const ISqlData *pGameData, Write w, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1617
static bool ShowRank(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:820
static bool SaveScore(IDbConnection *pSqlServer, const ISqlData *pGameData, Write w, char *pError, int ErrorSize)
Definition: scoreworker.cpp:492
static bool GetSaves(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1892
static bool ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1015
static bool ShowPlayerTeamTop5(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1201
static bool ShowPoints(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1408
static bool MapInfo(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:366
static bool ShowTeamTop5(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1108
static bool LoadPlayerData(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:174
static bool SaveTeamScore(IDbConnection *pSqlServer, const ISqlData *pGameData, Write w, char *pError, int ErrorSize)
Definition: scoreworker.cpp:651
static bool RandomMap(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1502
static bool LoadTeam(IDbConnection *pSqlServer, const ISqlData *pGameData, Write w, char *pError, int ErrorSize)
Definition: scoreworker.cpp:1762
static bool ShowTeamRank(IDbConnection *pSqlServer, const ISqlData *pGameData, char *pError, int ErrorSize)
Definition: scoreworker.cpp:932
Definition: scoreworker.h:76
CSqlLoadBestTimeRequest(std::shared_ptr< CScoreLoadBestTimeResult > pResult)
Definition: scoreworker.h:77
char m_aMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:83
Definition: scoreworker.h:87
char m_aName[MAX_MAP_LENGTH]
Definition: scoreworker.h:94
char m_aServer[5]
Definition: scoreworker.h:100
char m_aMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:96
int m_Offset
Definition: scoreworker.h:99
CSqlPlayerRequest(std::shared_ptr< CScorePlayerResult > pResult)
Definition: scoreworker.h:88
char m_aRequestingPlayer[MAX_NAME_LENGTH]
Definition: scoreworker.h:97
Definition: scoreworker.h:117
char m_aRequestingPlayer[MAX_NAME_LENGTH]
Definition: scoreworker.h:125
int m_Stars
Definition: scoreworker.h:126
char m_aServerType[32]
Definition: scoreworker.h:123
char m_aCurrentMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:124
CSqlRandomMapRequest(std::shared_ptr< CScoreRandomMapResult > pResult)
Definition: scoreworker.h:118
Definition: scoreworker.h:130
CSqlScoreData(std::shared_ptr< CScorePlayerResult > pResult)
Definition: scoreworker.h:131
virtual ~CSqlScoreData()
Definition: scoreworker.h:136
int m_Num
Definition: scoreworker.h:146
bool m_Search
Definition: scoreworker.h:147
int m_ClientId
Definition: scoreworker.h:142
float m_aCurrentTimeCp[NUM_CHECKPOINTS]
Definition: scoreworker.h:145
char m_aTimestamp[TIMESTAMP_STR_LENGTH]
Definition: scoreworker.h:144
float m_Time
Definition: scoreworker.h:143
char m_aMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:138
char m_aRequestingPlayer[MAX_NAME_LENGTH]
Definition: scoreworker.h:148
char m_aName[MAX_MAP_LENGTH]
Definition: scoreworker.h:140
char m_aGameUuid[UUID_MAXSTRSIZE]
Definition: scoreworker.h:139
Definition: scoreworker.h:207
int m_NumPlayer
Definition: scoreworker.h:220
char m_aRequestingPlayer[MAX_NAME_LENGTH]
Definition: scoreworker.h:216
char m_aClientNames[MAX_CLIENTS][MAX_NAME_LENGTH]
Definition: scoreworker.h:218
virtual ~CSqlTeamLoadRequest()
Definition: scoreworker.h:212
char m_aMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:215
CSqlTeamLoadRequest(std::shared_ptr< CScoreSaveResult > pResult)
Definition: scoreworker.h:208
int m_aClientId[MAX_CLIENTS]
Definition: scoreworker.h:219
char m_aCode[128]
Definition: scoreworker.h:214
Definition: scoreworker.h:192
char m_aGeneratedCode[128]
Definition: scoreworker.h:202
char m_aClientName[MAX_NAME_LENGTH]
Definition: scoreworker.h:199
char m_aCode[128]
Definition: scoreworker.h:201
char m_aMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:200
CSqlTeamSaveData(std::shared_ptr< CScoreSaveResult > pResult)
Definition: scoreworker.h:193
char m_aServer[5]
Definition: scoreworker.h:203
virtual ~CSqlTeamSaveData()
Definition: scoreworker.h:197
Definition: scoreworker.h:176
CSqlTeamScoreData()
Definition: scoreworker.h:177
float m_Time
Definition: scoreworker.h:184
CUuid m_TeamrankUuid
Definition: scoreworker.h:188
char m_aTimestamp[TIMESTAMP_STR_LENGTH]
Definition: scoreworker.h:185
char m_aGameUuid[UUID_MAXSTRSIZE]
Definition: scoreworker.h:182
char m_aaNames[MAX_CLIENTS][MAX_NAME_LENGTH]
Definition: scoreworker.h:187
char m_aMap[MAX_MAP_LENGTH]
Definition: scoreworker.h:183
unsigned int m_Size
Definition: scoreworker.h:186
Definition: scoreworker.h:262
unsigned int m_NumNames
Definition: scoreworker.h:265
CUuid m_TeamId
Definition: scoreworker.h:263
bool SamePlayers(const std::vector< std::string > *pvSortedNames)
Definition: scoreworker.cpp:90
char m_aaNames[MAX_CLIENTS][MAX_NAME_LENGTH]
Definition: scoreworker.h:264
CTeamrank()
Definition: scoreworker.cpp:56
bool NextSqlResult(IDbConnection *pSqlServer, bool *pEnd, char *pError, int ErrorSize)
Definition: scoreworker.cpp:64
static bool GetSqlTop5Team(IDbConnection *pSqlServer, bool *pEnd, char *pError, int ErrorSize, char(*paMessages)[512], int *StartLine, int Count)
Definition: scoreworker.cpp:102
Definition: uuid_manager.h:17
Definition: connection_pool.h:24
Definition: connection_pool.h:12
@ UUID_MAXSTRSIZE
Definition: uuid_manager.h:8
@ VOTE_REASON_LENGTH
Definition: voting.h:10