summaryrefslogtreecommitdiffstats
path: root/src/render/Console.h
blob: 726f96cf705d9777eb795afa37af57553cf4cd8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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");