1 | #ifndef GAME_CLIENT_COMPONENTS_STATBOARD_H |
2 | #define GAME_CLIENT_COMPONENTS_STATBOARD_H |
3 | |
4 | #include <engine/console.h> |
5 | |
6 | #include <game/client/component.h> |
7 | #include <string> |
8 | |
9 | class CStatboard : public CComponent |
10 | { |
11 | private: |
12 | bool m_Active; |
13 | bool m_ScreenshotTaken; |
14 | int64_t m_ScreenshotTime; |
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 | |
23 | public: |
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 |
35 | |