DDraceNetwork Docs
statboard.h
Go to the documentation of this file.
1#ifndef GAME_CLIENT_COMPONENTS_STATBOARD_H
2#define GAME_CLIENT_COMPONENTS_STATBOARD_H
3
4#include <engine/console.h>
5
7#include <string>
8
9class CStatboard : public CComponent
10{
11private:
15 static void ConKeyStats(IConsole::IResult *pResult, void *pUserData);
16 void RenderGlobalStats();
17 void AutoStatScreenshot();
18 void AutoStatCSV();
19
20 std::string ReplaceCommata(char *pStr);
21 void FormatStats(char *pDest, size_t DestSize);
22
23public:
24 CStatboard();
25 virtual int Sizeof() const override { return sizeof(*this); }
26 virtual void OnReset() override;
27 virtual void OnConsoleInit() override;
28 virtual void OnRender() override;
29 virtual void OnRelease() override;
30 virtual void OnMessage(int MsgType, void *pRawMsg) override;
31 bool IsActive() const;
32};
33
34#endif // GAME_CLIENT_COMPONENTS_STATBOARD_H
Definition: component.h:20
Definition: statboard.h:10
void FormatStats(char *pDest, size_t DestSize)
Definition: statboard.cpp:453
virtual void OnReset() override
Definition: statboard.cpp:20
CStatboard()
Definition: statboard.cpp:13
virtual void OnConsoleInit() override
Definition: statboard.cpp:39
virtual void OnMessage(int MsgType, void *pRawMsg) override
Definition: statboard.cpp:49
virtual int Sizeof() const override
Definition: statboard.h:25
virtual void OnRender() override
Definition: statboard.cpp:123
bool m_Active
Definition: statboard.h:12
bool m_ScreenshotTaken
Definition: statboard.h:13
static void ConKeyStats(IConsole::IResult *pResult, void *pUserData)
Definition: statboard.cpp:34
void AutoStatScreenshot()
Definition: statboard.cpp:403
int64_t m_ScreenshotTime
Definition: statboard.h:14
bool IsActive() const
Definition: statboard.cpp:44
void AutoStatCSV()
Definition: statboard.cpp:409
std::string ReplaceCommata(char *pStr)
Definition: statboard.cpp:430
void RenderGlobalStats()
Definition: statboard.cpp:148
virtual void OnRelease() override
Definition: statboard.cpp:29
Definition: console.h:45