mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
35 lines
885 B
C++
35 lines
885 B
C++
#ifndef GAME_CLIENT_COMPONENTS_STATBOARD_H
|
|
#define GAME_CLIENT_COMPONENTS_STATBOARD_H
|
|
|
|
#include <engine/console.h>
|
|
|
|
#include <game/client/component.h>
|
|
#include <string>
|
|
|
|
class CStatboard : public CComponent
|
|
{
|
|
private:
|
|
bool m_Active;
|
|
bool m_ScreenshotTaken;
|
|
int64_t m_ScreenshotTime;
|
|
static void ConKeyStats(IConsole::IResult *pResult, void *pUserData);
|
|
void RenderGlobalStats();
|
|
void AutoStatScreenshot();
|
|
void AutoStatCSV();
|
|
|
|
std::string ReplaceCommata(char *pStr);
|
|
void FormatStats(char *pDest, size_t DestSize);
|
|
|
|
public:
|
|
CStatboard();
|
|
virtual int Sizeof() const override { return sizeof(*this); }
|
|
virtual void OnReset() override;
|
|
virtual void OnConsoleInit() override;
|
|
virtual void OnRender() override;
|
|
virtual void OnRelease() override;
|
|
virtual void OnMessage(int MsgType, void *pRawMsg) override;
|
|
bool IsActive();
|
|
};
|
|
|
|
#endif // GAME_CLIENT_COMPONENTS_STATBOARD_H
|