summaryrefslogtreecommitdiffstats
path: root/src/render/Console.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-22 15:23:40 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-22 15:23:40 +0100
commit34b18815286938176b0462ba5a97ea03195409fb (patch)
tree62e01aacd06b12acb897dc48b45ca800ed77d44d /src/render/Console.h
parentbullet traces fixes (diff)
downloadre3-34b18815286938176b0462ba5a97ea03195409fb.tar
re3-34b18815286938176b0462ba5a97ea03195409fb.tar.gz
re3-34b18815286938176b0462ba5a97ea03195409fb.tar.bz2
re3-34b18815286938176b0462ba5a97ea03195409fb.tar.lz
re3-34b18815286938176b0462ba5a97ea03195409fb.tar.xz
re3-34b18815286938176b0462ba5a97ea03195409fb.tar.zst
re3-34b18815286938176b0462ba5a97ea03195409fb.zip
Diffstat (limited to 'src/render/Console.h')
-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