summaryrefslogtreecommitdiffstats
path: root/src/render/Console.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-22 15:26:18 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-22 15:26:18 +0100
commit360d9cf8895123d978ac4c4dae56f6ba76f379b6 (patch)
tree716e881db18506e2fee9a53f5674f28edce72138 /src/render/Console.h
parentCGame::Initialise (diff)
parentConsole (diff)
downloadre3-360d9cf8895123d978ac4c4dae56f6ba76f379b6.tar
re3-360d9cf8895123d978ac4c4dae56f6ba76f379b6.tar.gz
re3-360d9cf8895123d978ac4c4dae56f6ba76f379b6.tar.bz2
re3-360d9cf8895123d978ac4c4dae56f6ba76f379b6.tar.lz
re3-360d9cf8895123d978ac4c4dae56f6ba76f379b6.tar.xz
re3-360d9cf8895123d978ac4c4dae56f6ba76f379b6.tar.zst
re3-360d9cf8895123d978ac4c4dae56f6ba76f379b6.zip
Diffstat (limited to 'src/render/Console.h')
-rw-r--r--src/render/Console.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/render/Console.h b/src/render/Console.h
index 726f96cf..f66d63d5 100644
--- a/src/render/Console.h
+++ b/src/render/Console.h
@@ -1,24 +1,24 @@
#pragma once
-#include "common.h"
class CConsole
{
- enum {
- MAX_MESSAGE_LENGTH = 40
+ enum
+ {
+ MAX_LINES = 8, // BUG? only shows 7
+ MAX_STR_LEN = 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];
+ uint8 m_nLineCount;
+ uint8 m_nCurrentLine;
+ wchar Buffers[MAX_LINES][MAX_STR_LEN];
+ uint32 m_aTimer[MAX_LINES];
+ uint8 m_aRed[MAX_LINES];
+ uint8 m_aGreen[MAX_LINES];
+ uint8 m_aBlue[MAX_LINES];
public:
- void Init() { m_nCurrentMessage = 0; m_nActiveMessages = 0; }
+ void AddLine(char *s, uint8 r, uint8 g, uint8 b);
+ void AddOneLine(char *s, uint8 r, uint8 g, uint8 b);
void Display();
};
-extern CConsole& TheConsole;
-
-static_assert(sizeof(CConsole) == 0x2BC, "CConsole: error"); \ No newline at end of file
+extern CConsole &TheConsole; \ No newline at end of file