-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathXL_Console.h
40 lines (30 loc) · 1.36 KB
/
XL_Console.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef XLCONSOLE_H
#define XLCONSOLE_H
#include "Console.h"
#include "../os/Input.h"
class Font;
class XL_Console
{
public:
static bool Init(IDriver3D *pDriver);
static void Destroy();
static void Render();
static void RegisterCmd(const std::string& itemName, void *ptr, Console::ConsoleItemType type, const std::string& itemHelp, void *pUserData);
static void Print(const std::string& szMsg);
static void PrintF(const char *pszString, ...);
static bool IsActive();
static bool IsPaused();
static bool IsChatActive();
static void SetGameInfo(const std::string& gameName, int32_t versionMinor, int32_t versionMajor) { s_pConsole->SetGameInfo(gameName, versionMinor, versionMajor); }
static void SetConsoleColor(float fRed, float fGreen, float fBlue, float fAlpha);
private:
static Console *s_pConsole;
static void _DefaultConsoleFunc(const std::vector<std::string>& args, void *pUserData);
static void _Echo(const std::vector<std::string>& args, void *pUserData);
static void _CmdList(const std::vector<std::string>& args, void *pUserData);
static void _Help(const std::vector<std::string>& args, void *pUserData);
static void _ConsoleTex(const std::vector<std::string>& args, void *pUserData);
static void _KeyDownCallback(int32_t key);
static void _CharDownCallback(int32_t key);
};
#endif //XLCONSOLE_H