3#ifndef ENGINE_CLIENT_CLIENT_H
4#define ENGINE_CLIENT_CLIENT_H
48#define CONNECTLINK_DOUBLE_SLASH "ddnet://"
49#define CONNECTLINK_NO_SLASH "ddnet:"
298 void RconAuth(
const char *pName,
const char *pPassword,
bool Dummy =
g_Config.m_ClDummy)
override;
299 void Rcon(
const char *pCmd)
override;
310 int *
GetInput(
int Tick,
int IsDummy)
const override;
321 void Connect(
const char *pAddress,
const char *pPassword =
nullptr)
override;
340 CSnapItem
SnapGetItem(
int SnapId,
int Index)
const override;
341 const void *
SnapFindItem(
int SnapId,
int Type,
int Id)
const override;
350 void Quit()
override;
356 const char *
LoadMap(
const char *pName,
const char *pFilename,
SHA256_DIGEST *pWantedSha256,
unsigned WantedCrc);
414#if defined(CONF_VIDEORECORDER)
415 void StartVideo(
const char *pFilename,
bool WithTimestamp);
418 const char *
DemoPlayer_Render(
const char *pFilename,
int StorageType,
const char *pVideoName,
int SpeedIndex,
bool StartPaused =
false)
override;
452 const char *
DemoPlayer_Play(
const char *pFilename,
int StorageType)
override;
453 void DemoRecorder_Start(
const char *pFilename,
bool WithTimestamp,
int Recorder,
bool Verbose =
false)
override;
481 void Notify(
const char *pTitle,
const char *pMessage)
override;
504 virtual void SaveReplay(
int Length,
const char *pFilename =
"");
510 void GetSmoothTick(
int *pSmoothTick,
float *pSmoothIntraTick,
float MixAmount)
override;
519 bool ViewLink(
const char *pLink)
override;
520 bool ViewFile(
const char *pFilename)
override;
522#if defined(CONF_FAMILY_WINDOWS)
523 void ShellRegister()
override;
524 void ShellUnregister()
override;
529 void SetLoggers(std::shared_ptr<ILogger> &&pFileLogger, std::shared_ptr<ILogger> &&pStdoutLogger);
const SHA256_DIGEST SHA256_ZEROED
Definition: hash.cpp:6
bool m_MapdownloadSha256Present
Definition: client.h:155
int SendMsgActive(CMsgPacker *pMsg, int Flags) override
Definition: client.cpp:207
const char * LoadMapSearch(const char *pMapName, SHA256_DIGEST *pWantedSha256, int WantedCrc)
Definition: client.cpp:1123
bool m_AutoStatScreenshotRecycle
Definition: client.h:112
int64_t m_OwnExecutableSize
Definition: client.h:249
void Restart() override
Definition: client.cpp:973
bool m_DummyDeactivateOnReconnect
Definition: client.h:187
char m_aCmdPlayDemo[IO_MAX_PATH_LENGTH]
Definition: client.h:141
std::shared_ptr< CHttpRequest > m_pMapdownloadTask
Definition: client.h:146
void GenerateTimeoutCodes(const NETADDR *pAddrs, int NumAddrs)
Definition: client.cpp:515
IOHANDLE m_OwnExecutable
Definition: client.h:250
struct CClient::CVersionInfo m_VersionInfo
static void ConchainWindowScreen(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4238
std::shared_ptr< ILogger > m_pFileLogger
Definition: client.h:262
bool ViewFile(const char *pFilename) override
Definition: client.cpp:5112
void GenerateTimeoutSeed() override
Definition: client.cpp:510
int m_MapDetailsCrc
Definition: client.h:160
void SwitchWindowScreen(int Index) override
Definition: client.cpp:4211
bool InitNetworkClient(char *pError, size_t ErrorSize)
Definition: client.cpp:3348
static void Con_EndFavoriteGroup(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3643
char m_aTimeoutCodes[NUM_DUMMIES][32]
Definition: client.h:136
void HandleConnectLink(const char *pLink)
Definition: client.cpp:4462
static void ConchainWindowResize(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4316
void ServerInfoRequest()
Definition: client.cpp:786
void OnWindowResize() override
Definition: client.cpp:4296
void UpdateAndSwap() override
Definition: client.cpp:4068
int m_SnapCrcErrors
Definition: client.h:110
IDiscord * m_pDiscord
Definition: client.h:67
IEngine * Engine()
Definition: client.h:272
ISteam * Steam()
Definition: client.h:277
void AutoStatScreenshot_Cleanup()
Definition: client.cpp:3492
IEditor * m_pEditor
Definition: client.h:68
IOHANDLE m_MapdownloadFileTemp
Definition: client.h:150
int64_t m_Time
Definition: client.h:177
const char * LoadMap(const char *pName, const char *pFilename, SHA256_DIGEST *pWantedSha256, unsigned WantedCrc)
Definition: client.cpp:1047
void RconAuth(const char *pName, const char *pPassword, bool Dummy=g_Config.m_ClDummy) override
Definition: client.cpp:265
void DebugRender()
Definition: client.cpp:838
static void Con_Quit(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3433
static void ConchainWindowBordered(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4269
static void Con_DemoSpeed(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3932
char m_aMapDetailsName[256]
Definition: client.h:159
static void Con_SaveReplay(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3730
void ResetDDNetInfoTask()
Definition: client.cpp:2313
void HandleDemoPath(const char *pPath)
Definition: client.cpp:4478
static void ConchainPassword(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4334
IDemoRecorder * DemoRecorder(int Recorder) override
Definition: client.cpp:4019
void OnDemoPlayerSnapshot(void *pData, int Size) override
Definition: client.cpp:2550
CFifo m_Fifo
Definition: client.h:243
struct CClient::@41 m_aInputs[NUM_DUMMIES][200]
bool m_FavoritesGroupAllowPing
Definition: client.h:254
SHA256_DIGEST m_MapdownloadSha256
Definition: client.h:156
int64_t m_CurrentServerCurrentPingTime
Definition: client.h:223
static void Con_Ping(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3451
int64_t m_LastRenderTime
Definition: client.h:108
void GetServerInfo(CServerInfo *pServerInfo) const override
Definition: client.cpp:781
void Notify(const char *pTitle, const char *pMessage) override
Definition: client.cpp:4287
IStorage * Storage()
Definition: client.h:279
IEngineInput * Input()
Definition: client.h:275
static void Con_Screenshot(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3526
CFriends m_Friends
Definition: client.h:91
void SendInfo(int Conn)
Definition: client.cpp:212
IConsole * m_pConsole
Definition: client.h:66
void DemoRecorder_HandleAutoStart() override
Definition: client.cpp:3978
const char * MapDownloadName() const override
Definition: client.h:380
void HandleMapPath(const char *pPath)
Definition: client.cpp:4483
void RegisterCommands()
Definition: client.cpp:4372
CGraph m_aGametimeMarginGraphs[NUM_DUMMIES]
Definition: client.h:191
bool m_Sixup
Definition: client.h:97
CGhostLoader m_GhostLoader
Definition: client.h:88
void ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy)
Definition: client.cpp:1437
CUuid m_ConnectionId
Definition: client.h:96
CSmoothTime m_PredictedTime
Definition: client.h:168
char m_aMapdownloadFilename[256]
Definition: client.h:147
static void Con_DemoPlay(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3916
static void Con_Play(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3910
int m_CurrentServerPingToken
Definition: client.h:221
void DemoSlice(const char *pDstPath, CLIENTFUNC_FILTER pfnFilter, void *pUser) override
Definition: client.cpp:3809
CGraph m_InputtimeMarginGraph
Definition: client.h:190
void ProcessServerInfo(int Type, NETADDR *pFrom, const void *pData, int DataSize)
Definition: client.cpp:1203
void Connect(const char *pAddress, const char *pPassword=nullptr) override
Definition: client.cpp:535
char m_aaaDemorecSnapshotData[NUM_SNAPSHOT_TYPES][2][CSnapshot::MAX_SIZE]
Definition: client.h:203
virtual int HandleChecksum(int Conn, CUuid Uuid, CUnpacker *pUnpacker)
Definition: client.cpp:4113
static void Con_BeginFavoriteGroup(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3625
int m_ExpectedRconCommands
Definition: client.h:122
IEngineGraphics * Graphics()
Definition: client.h:274
int m_aAckGameTick[NUM_DUMMIES]
Definition: client.h:116
int m_MapdownloadTotalsize
Definition: client.h:154
bool m_CanReceiveServerCapabilities
Definition: client.h:210
CSnapshotStorage::CHolder * m_aapSnapshots[NUM_DUMMIES][NUM_SNAPSHOT_TYPES]
Definition: client.h:196
unsigned GetCurrentMapCrc() const override
Definition: client.cpp:4940
void Rcon(const char *pCmd) override
Definition: client.cpp:290
std::shared_ptr< ILogger > m_pStdoutLogger
Definition: client.h:263
NETADDR m_GlobalTcpAddr
Definition: client.h:100
static void Con_AddDemoMarker(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:4046
static void Con_Restart(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3439
CFriends m_Foes
Definition: client.h:92
static void ConchainWindowVSync(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4304
void StartVideo(const char *pFilename, bool WithTimestamp)
Definition: client.cpp:3548
CSnapshotStorage m_aSnapshotStorage[NUM_DUMMIES]
Definition: client.h:195
CConfig * Config()
Definition: client.h:270
char m_aMapdownloadName[256]
Definition: client.h:149
bool m_MapDetailsPresent
Definition: client.h:158
static void Con_DummyResetInput(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3427
CClient()
Definition: client.cpp:86
bool DummyConnecting() const override
Definition: client.cpp:709
IGameClient * m_pGameClient
Definition: client.h:71
void AddWarning(const SWarning &Warning) override
Definition: client.cpp:5018
void Render()
Definition: client.cpp:1024
int m_aSnapshotIncomingDataSize[NUM_DUMMIES]
Definition: client.h:200
uint64_t m_aSnapshotParts[NUM_DUMMIES]
Definition: client.h:102
CSnapshotDelta m_SnapshotDelta
Definition: client.h:205
void DemoSliceEnd() override
Definition: client.cpp:3712
char m_aMapdownloadFilenameTemp[256]
Definition: client.h:148
void DummyDisconnect(const char *pReason) override
Definition: client.cpp:760
char m_aRconUsername[32]
Definition: client.h:119
char m_aAutomaticDummyName[MAX_NAME_LENGTH]
Definition: client.h:266
static void Con_Record(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:4024
int m_MapdownloadAmount
Definition: client.h:153
SHA256_DIGEST GetCurrentMapSha256() const override
Definition: client.cpp:4935
void DisconnectWithReason(const char *pReason)
Definition: client.cpp:642
std::optional< SWarning > CurrentWarning() override
Definition: client.cpp:5024
char m_aaSnapshotIncomingData[NUM_DUMMIES][CSnapshot::MAX_SIZE]
Definition: client.h:199
void DemoRecorder_Start(const char *pFilename, bool WithTimestamp, int Recorder, bool Verbose=false) override
Definition: client.cpp:3938
const NETADDR & ServerAddress() const override
Definition: client.h:377
void SnapSetStaticsize7(int ItemType, int Size) override
Definition: client.cpp:833
static void Con_DummyConnect(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3415
void HandleConnectAddress(const NETADDR *pAddr)
Definition: client.cpp:4457
bool m_DummyReconnectOnReload
Definition: client.h:186
bool m_EditorActive
Definition: client.h:114
void LoadDebugFont()
Definition: client.cpp:792
IEngineTextRender * m_pTextRender
Definition: client.h:79
int m_MapdownloadChunk
Definition: client.h:151
bool DummyAllowed() const override
Definition: client.cpp:776
void PumpNetwork()
Definition: client.cpp:2484
int m_GotRconCommands
Definition: client.h:123
CConfig * m_pConfig
Definition: client.h:65
void ResetMapDownload(bool ResetActive)
Definition: client.cpp:2244
void SetState(EClientState State)
Definition: client.cpp:393
void RaceRecord_Stop() override
Definition: client.cpp:4966
bool m_LastDummy
Definition: client.h:181
char m_aCurrentMap[IO_MAX_PATH_LENGTH]
Definition: client.h:133
static void Con_DemoSliceEnd(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3724
static void Con_StopRecord(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:4040
bool DummyConnected() const override
Definition: client.cpp:704
std::deque< std::shared_ptr< CDemoEdit > > m_EditJobs
Definition: client.h:207
void RaceRecord_Start(const char *pFilename) override
Definition: client.cpp:4945
CNetClient m_aNetClient[NUM_CONNS]
Definition: client.h:83
bool EditorHasUnsavedData() const override
Definition: client.h:506
void ProcessConnlessPacket(CNetChunk *pPacket)
Definition: client.cpp:1173
void SetLoggers(std::shared_ptr< ILogger > &&pFileLogger, std::shared_ptr< ILogger > &&pStdoutLogger)
Definition: client.cpp:5204
char m_aMapDownloadUrl[256]
Definition: client.h:145
IFavorites * m_pFavorites
Definition: client.h:70
IEngineMap * m_pMap
Definition: client.h:74
CDemoPlayer m_DemoPlayer
Definition: client.h:84
int PredictionMargin() const
Definition: client.cpp:5044
bool m_DummyConnected
Definition: client.h:184
static void Con_StartVideo(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3534
char m_aCmdEditMap[IO_MAX_PATH_LENGTH]
Definition: client.h:142
void UpdateDemoIntraTimers()
Definition: client.cpp:2610
bool m_DummyConnecting
Definition: client.h:183
bool ReceivingRconCommands() const override
Definition: client.h:300
IUpdater * Updater()
Definition: client.h:281
IHttp * Http()
Definition: client.h:282
char m_aCurrentMapPath[IO_MAX_PATH_LENGTH]
Definition: client.h:134
CGhostRecorder m_GhostRecorder
Definition: client.h:87
int64_t m_BenchmarkStopTime
Definition: client.h:246
void Quit() override
Definition: client.cpp:978
void InitInterfaces()
Definition: client.cpp:2931
int MaxLatencyTicks() const
Definition: client.cpp:5039
static void Con_AddFavorite(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3660
void Update()
Definition: client.cpp:2621
SHA256_DIGEST m_MapDetailsSha256
Definition: client.h:161
void ShowMessageBox(const char *pTitle, const char *pMessage, EMessageBoxType Type=MESSAGE_BOX_TYPE_ERROR) override
Definition: client.cpp:5186
static void Con_Disconnect(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3409
void OnEnterGame(bool Dummy)
Definition: client.cpp:435
const char * GetCurrentMapPath() const override
Definition: client.cpp:4930
static void Con_RconLogin(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3619
bool m_DummySendConnInfo
Definition: client.h:182
CSnapItem SnapGetItem(int SnapId, int Index) const override
Definition: client.cpp:799
const char * ConnectAddressString() const override
Definition: client.h:379
CChecksumData * ChecksumData() override
Definition: client.h:516
bool IsSixup() const override
Definition: client.h:375
bool m_SendPassword
Definition: client.h:125
IEngineGraphics * m_pGraphics
Definition: client.h:72
int m_UseTempRconCommands
Definition: client.h:121
void Run()
Definition: client.cpp:2967
int64_t m_PredictionMargin
Definition: client.h:176
static void Con_Connect(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3403
IUpdater * m_pUpdater
Definition: client.h:80
int TranslateSysMsg(int *pMsgId, bool System, CUnpacker *pUnpacker, CPacker *pPacker, CNetChunk *pPacket, bool *pIsExMsg)
Definition: sixup_translate_system.cpp:3
static void ConchainTimeoutSeed(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4326
bool ViewLink(const char *pLink) override
Definition: client.cpp:5093
void LoadDDNetInfo()
Definition: client.cpp:2390
CHttp m_Http
Definition: client.h:81
char m_aPassword[sizeof(g_Config.m_Password)]
Definition: client.h:124
const char * DemoPlayer_Render(const char *pFilename, int StorageType, const char *pVideoName, int SpeedIndex, bool StartPaused=false) override
Definition: client.cpp:3894
INotifications * Notifications()
Definition: client.h:278
CServerBrowser m_ServerBrowser
Definition: client.h:89
void SendMapRequest()
Definition: client.cpp:248
static void ConchainLoglevel(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4352
INotifications * m_pNotifications
Definition: client.h:77
int ConnectNetTypes() const override
Definition: client.cpp:2471
static void Con_Minimize(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3445
bool m_GenerateTimeoutSeed
Definition: client.h:138
int m_aData[MAX_INPUT_SIZE]
Definition: client.h:173
virtual void InitChecksum()
Definition: client.cpp:4088
int * GetInput(int Tick, int IsDummy) const override
Definition: client.cpp:377
int GetPredictionTime() override
Definition: client.cpp:5002
bool m_AutoCSVRecycle
Definition: client.h:113
IStorage * m_pStorage
Definition: client.h:78
void ToggleWindowVSync() override
Definition: client.cpp:4281
std::vector< SWarning > && QuittingWarnings()
Definition: client.h:514
const char * DummyName() override
Definition: client.cpp:996
int64_t m_PredictedTime
Definition: client.h:175
int m_aCurrentInput[NUM_DUMMIES]
Definition: client.h:180
const void * SnapFindItem(int SnapId, int Type, int Id) const override
Definition: client.cpp:812
char m_aCmdConnect[256]
Definition: client.h:140
IEngine * m_pEngine
Definition: client.h:69
int SendMsg(int Conn, CMsgPacker *pMsg, int Flags) override
Definition: client.cpp:170
static void Con_RemoveFavorite(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3698
IOHANDLE m_BenchmarkFile
Definition: client.h:245
void SendReady(int Conn)
Definition: client.cpp:242
bool DummyConnectingDelayed() const override
Definition: client.cpp:714
void RequestDDNetInfo() override
Definition: client.cpp:4979
int SnapNumItems(int SnapId) const override
Definition: client.cpp:820
void OnDemoPlayerMessage(void *pData, int Size) override
Definition: client.cpp:2589
int m_aRconAuthed[NUM_DUMMIES]
Definition: client.h:118
static void Con_DemoSlice(IConsole::IResult *pResult, void *pUserData)
void AutoScreenshot_Cleanup()
Definition: client.cpp:3478
IGraphics::CTextureHandle m_DebugFont
Definition: client.h:106
void AutoCSV_Start() override
Definition: client.cpp:3506
CSnapshotStorage::CHolder m_aDemorecSnapshotHolders[NUM_SNAPSHOT_TYPES]
Definition: client.h:202
char m_aMapDetailsUrl[256]
Definition: client.h:162
CChecksum m_Checksum
Definition: client.h:248
int64_t m_LocalStartTime
Definition: client.h:103
void SendInput()
Definition: client.cpp:312
CServerInfo m_CurrentServerInfo
Definition: client.h:216
int64_t m_GlobalStartTime
Definition: client.h:104
int m_Tick
Definition: client.h:174
bool RconAuthed() const override
Definition: client.h:296
static void Con_DemoSliceBegin(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3718
CDemoEditor m_DemoEditor
Definition: client.h:86
void AutoScreenshot_Start() override
Definition: client.cpp:3460
CDemoRecorder m_aDemoRecorder[RECORDER_MAX]
Definition: client.h:85
bool CtrlShiftKey(int Key, bool &Last)
Definition: client.cpp:3390
void DemoRecorder_AddDemoMarker(int Recorder)
Definition: client.cpp:4014
IDiscord * Discord()
Definition: client.h:271
IEngineTextRender * TextRender()
Definition: client.h:280
IGameClient * GameClient()
Definition: client.h:273
static void Con_StopVideo(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3593
void EnterGame(int Conn) override
Definition: client.cpp:476
CSmoothTime m_aGameTime[NUM_DUMMIES]
Definition: client.h:167
static void Con_BenchmarkQuit(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:4053
IFriends * Foes() override
Definition: client.h:508
std::shared_ptr< CHttpRequest > m_pDDNetInfoTask
Definition: client.h:164
float m_LastDummyConnectTime
Definition: client.h:185
CUuid m_CurrentServerPingUuid
Definition: client.h:222
bool ServerCapAnyPlayerFlag() const override
Definition: client.h:214
int m_MapdownloadCrc
Definition: client.h:152
std::mutex m_WarningsMutex
Definition: client.h:239
static void ConchainReplays(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4342
std::vector< SWarning > m_vWarnings
Definition: client.h:240
int m_CurrentServerPingBasicToken
Definition: client.h:220
const char * GetCurrentMap() const override
Definition: client.cpp:4925
IEngineSound * Sound()
Definition: client.h:276
CUpdater m_Updater
Definition: client.h:90
void SendEnterGame(int Conn)
Definition: client.cpp:236
void Disconnect() override
Definition: client.cpp:696
void FinishMapDownload()
Definition: client.cpp:2277
IEngineInput * m_pInput
Definition: client.h:73
static void ConchainFullscreen(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4257
char m_aRconPassword[sizeof(g_Config.m_SvRconPassword)]
Definition: client.h:120
void GetGpuInfoString(char(&aGpuInfo)[256]) override
Definition: client.cpp:5192
CServerCapabilities m_ServerCapabilities
Definition: client.h:212
bool m_AutoScreenshotRecycle
Definition: client.h:111
const char * DemoPlayer_Play(const char *pFilename, int StorageType) override
Definition: client.cpp:3817
char m_aVersionStr[10]
Definition: client.h:128
int m_aCurrentRecvTick[NUM_DUMMIES]
Definition: client.h:117
int UnpackAndValidateSnapshot(CSnapshot *pFrom, CSnapshot *pTo)
Definition: client.cpp:2205
virtual void SaveReplay(int Length, const char *pFilename="")
Definition: client.cpp:3750
void AutoStatScreenshot_Start() override
Definition: client.cpp:3469
void DemoSliceBegin() override
Definition: client.cpp:3706
int64_t m_CurrentServerNextPingTime
Definition: client.h:224
int MapDownloadTotalsize() const override
Definition: client.h:382
void BenchmarkQuit(int Seconds, const char *pFilename)
Definition: client.cpp:4061
ISteam * m_pSteam
Definition: client.h:76
int UdpConnectivity(int NetType) override
Definition: client.cpp:5049
NETADDR m_aFavoritesGroupAddresses[MAX_SERVER_ADDRESSES]
Definition: client.h:256
void DemoRecorder_UpdateReplayRecorder() override
Definition: client.cpp:3999
int MapDownloadAmount() const override
Definition: client.h:381
std::vector< SWarning > m_vQuittingWarnings
Definition: client.h:241
void AutoCSV_Cleanup()
Definition: client.cpp:3512
bool m_HaveGlobalTcpAddr
Definition: client.h:99
void FinishDDNetInfo()
Definition: client.cpp:2322
static void Con_RconAuth(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3613
const char * PlayerName() const override
Definition: client.cpp:983
void ServerBrowserUpdate() override
Definition: client.cpp:4076
static void Con_Rcon(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3607
char m_aConnectAddressStr[MAX_SERVER_ADDRESSES *NETADDR_MAXSTRSIZE]
Definition: client.h:94
static void ConchainStdoutOutputLevel(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4362
void SnapSetStaticsize(int ItemType, int Size) override
Definition: client.cpp:828
int m_FavoritesGroupNum
Definition: client.h:255
bool m_aCodeRunAfterJoin[NUM_DUMMIES]
Definition: client.h:137
IGraphics::CTextureHandle GetDebugFont() const override
Definition: client.h:305
const char * ErrorString() const override
Definition: client.cpp:1019
static void ConchainServerBrowserUpdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: client.cpp:4081
IEngineSound * m_pSound
Definition: client.h:75
int m_aReceivedSnapshots[NUM_DUMMIES]
Definition: client.h:198
CGraph m_FpsGraph
Definition: client.h:192
static void Con_DummyDisconnect(IConsole::IResult *pResult, void *pUserData)
Definition: client.cpp:3421
bool m_FavoritesGroup
Definition: client.h:253
float GotRconCommandsPercentage() const override
Definition: client.cpp:297
bool UseTempRconCommands() const override
Definition: client.h:297
int m_CurrentServerPingInfoType
Definition: client.h:219
void GetSmoothTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount) override
Definition: client.cpp:5008
int64_t m_PingStartTime
Definition: client.h:131
void RegisterInterfaces()
Definition: client.cpp:2916
int64_t m_CurrentServerInfoRequestTime
Definition: client.h:217
const char * LatestVersion() const override
Definition: client.cpp:371
bool m_ServerSentCapabilities
Definition: client.h:211
void DummyConnect() override
Definition: client.cpp:719
IConfigManager * m_pConfigManager
Definition: client.h:64
void SetWindowParams(int FullscreenMode, bool IsBorderless) override
Definition: client.cpp:4250
IConfigManager * ConfigManager()
Definition: client.h:269
bool ConnectionProblems() const override
Definition: client.cpp:307
bool RaceRecord_IsRecording() override
Definition: client.cpp:4974
Definition: demoedit.h:11
Definition: network.h:521
const NETADDR * ServerAddress() const
Definition: network.h:551
Definition: serverbrowser.h:235
bool m_SyncWeaponInput
Definition: client.h:58
bool m_AnyPlayerFlag
Definition: client.h:55
bool m_ChatTimeoutCode
Definition: client.h:54
bool m_AllowDummy
Definition: client.h:57
bool m_PingEx
Definition: client.h:56
Definition: serverbrowser.h:23
Definition: smooth_time.h:12
Definition: snapshot.h:74
Definition: snapshot.h:118
Definition: snapshot.h:115
Definition: snapshot.h:31
@ MAX_SIZE
Definition: snapshot.h:52
EMessageBoxType
Definition: client.h:335
@ MESSAGE_BOX_TYPE_ERROR
Definition: client.h:336
EClientState
Definition: client.h:49
EClientState State() const
Definition: client.h:137
@ NUM_SNAPSHOT_TYPES
Definition: client.h:230
@ NUM_CONNS
Definition: client.h:122
@ CONN_MAIN
Definition: client.h:119
void(* FCommandCallback)(IResult *pResult, void *pUserData)
Definition: console.h:92
virtual bool HasUnsavedData() const =0
Definition: graphics.h:487
Definition: textrender.h:375
Definition: favorites.h:14
Definition: graphics.h:201
Definition: notifications.h:7
@ RECORDER_MAX
Definition: client.h:29
bool(* CLIENTFUNC_FILTER)(const void *pData, int DataSize, void *pUser)
Definition: client.h:32
CConfig g_Config
Definition: config.cpp:12
@ NUM_DUMMIES
Definition: enums.h:8
@ MAX_SERVER_ADDRESSES
Definition: protocol.h:86
@ MAX_INPUT_SIZE
Definition: protocol.h:94
@ MAX_NAME_LENGTH
Definition: protocol.h:97
void * IOHANDLE
Definition: logger.h:11
int m_State
Definition: client.h:236
@ STATE_START
Definition: client.h:232
@ STATE_READY
Definition: client.h:233
@ STATE_INIT
Definition: client.h:231
Definition: network.h:139
Definition: uuid_manager.h:17
const NETADDR NETADDR_ZEROED
Definition: system.cpp:1002
@ NETADDR_MAXSTRSIZE
Definition: types.h:45
@ IO_MAX_PATH_LENGTH
Definition: types.h:43
Definition: checksum.h:31
CChecksumData m_Data
Definition: checksum.h:33
const CUuid UUID_ZEROED
Definition: uuid_manager.cpp:14