2018-07-06 14:11:38 +00:00
|
|
|
#ifndef GAME_CLIENT_COMPONENTS_STATBOARD_H
|
|
|
|
#define GAME_CLIENT_COMPONENTS_STATBOARD_H
|
|
|
|
|
2015-05-19 22:51:02 +00:00
|
|
|
#include <game/client/component.h>
|
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
class CStatboard : public CComponent
|
2015-05-19 22:51:02 +00:00
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
private:
|
|
|
|
bool m_Active;
|
|
|
|
bool m_ScreenshotTaken;
|
2021-06-23 05:05:49 +00:00
|
|
|
int64_t m_ScreenshotTime;
|
2020-09-26 19:41:58 +00:00
|
|
|
static void ConKeyStats(IConsole::IResult *pResult, void *pUserData);
|
|
|
|
void RenderGlobalStats();
|
|
|
|
void AutoStatScreenshot();
|
|
|
|
void AutoStatCSV();
|
2017-05-02 16:27:04 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
char *m_pCSVstr;
|
|
|
|
char *ReplaceCommata(char *pStr);
|
|
|
|
void FormatStats();
|
2015-05-19 22:51:02 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
public:
|
|
|
|
CStatboard();
|
2022-01-31 02:11:47 +00:00
|
|
|
virtual int Sizeof() const override { return sizeof(*this); }
|
2022-01-30 23:43:56 +00:00
|
|
|
virtual void OnReset() override;
|
|
|
|
virtual void OnConsoleInit() override;
|
|
|
|
virtual void OnRender() override;
|
|
|
|
virtual void OnRelease() override;
|
|
|
|
virtual void OnMessage(int MsgType, void *pRawMsg) override;
|
2020-09-26 19:41:58 +00:00
|
|
|
bool IsActive();
|
2015-05-19 22:51:02 +00:00
|
|
|
};
|
2018-07-06 14:11:38 +00:00
|
|
|
|
|
|
|
#endif // GAME_CLIENT_COMPONENTS_STATBOARD_H
|