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>
|
|
|
|
|
2015-05-21 09:41:59 +00:00
|
|
|
class CStatboard: public CComponent
|
2015-05-19 22:51:02 +00:00
|
|
|
{
|
2015-05-20 23:06:31 +00:00
|
|
|
private:
|
|
|
|
bool m_Active;
|
|
|
|
bool m_ScreenshotTaken;
|
|
|
|
int64 m_ScreenshotTime;
|
|
|
|
static void ConKeyStats(IConsole::IResult *pResult, void *pUserData);
|
|
|
|
void RenderGlobalStats();
|
|
|
|
void AutoStatScreenshot();
|
2017-04-26 03:10:31 +00:00
|
|
|
void AutoStatCSV();
|
2017-05-02 16:27:04 +00:00
|
|
|
|
2017-05-08 19:55:03 +00:00
|
|
|
char* m_pCSVstr;
|
2017-05-02 16:27:04 +00:00
|
|
|
char* ReplaceCommata(char* pStr);
|
|
|
|
void FormatStats();
|
2015-05-19 22:51:02 +00:00
|
|
|
|
2015-05-20 23:06:31 +00:00
|
|
|
public:
|
2015-05-21 09:41:59 +00:00
|
|
|
CStatboard();
|
2015-05-20 23:06:31 +00:00
|
|
|
virtual void OnReset();
|
|
|
|
virtual void OnConsoleInit();
|
|
|
|
virtual void OnRender();
|
2015-07-09 18:38:23 +00:00
|
|
|
virtual void OnRelease();
|
2015-05-20 23:06:31 +00:00
|
|
|
virtual void OnMessage(int MsgType, void *pRawMsg);
|
|
|
|
bool IsActive();
|
2015-05-19 22:51:02 +00:00
|
|
|
};
|
2018-07-06 14:11:38 +00:00
|
|
|
|
|
|
|
#endif // GAME_CLIENT_COMPONENTS_STATBOARD_H
|