summaryrefslogtreecommitdiffstats
path: root/src/render/Console.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/render/Console.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/render/Console.h b/src/render/Console.h
new file mode 100644
index 00000000..726f96cf
--- /dev/null
+++ b/src/render/Console.h
@@ -0,0 +1,24 @@
+#pragma once
+#include "common.h"
+
+class CConsole
+{
+ enum {
+ MAX_MESSAGE_LENGTH = 40
+ };
+ uint8 m_nActiveMessages;
+ uint8 m_nCurrentMessage;
+ wchar m_asMessages[NUM_CONSOLEMESSAGES][MAX_MESSAGE_LENGTH];
+ uint32 m_anTimeStart[NUM_CONSOLEMESSAGES];
+ uint8 m_anColourRed[NUM_CONSOLEMESSAGES];
+ uint8 m_anColourGreen[NUM_CONSOLEMESSAGES];
+ uint8 m_anColourBlue[NUM_CONSOLEMESSAGES];
+
+public:
+ void Init() { m_nCurrentMessage = 0; m_nActiveMessages = 0; }
+ void Display();
+};
+
+extern CConsole& TheConsole;
+
+static_assert(sizeof(CConsole) == 0x2BC, "CConsole: error"); \ No newline at end of file