-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConsole.cpp
More file actions
48 lines (38 loc) · 984 Bytes
/
Console.cpp
File metadata and controls
48 lines (38 loc) · 984 Bytes
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
41
42
43
44
45
46
47
48
#include "stdafx.h"
#include "Console.h"
DreamConsole* Console::_console = nullptr;
void Console::Init() {
_console = new DreamConsole();
_console->Init();
}
void Console::Log(wstring text) {
_console->SetColor(COLORS::WHITE);
_console->Write(text);
}
void Console::R(wstring text) {
_console->SetColor(COLORS::LIGHT_RED);
_console->Write(text);
}
void Console::G(wstring text) {
_console->SetColor(COLORS::LIGHT_GREEN);
_console->Write(text);
}
void Console::B(wstring text) {
_console->SetColor(COLORS::LIGHT_BLUE);
_console->Write(text);
}
void Console::A(wstring text) {
_console->SetColor(COLORS::LIGHT_AQUA);
_console->Write(text);
}
void Console::P(wstring text) {
_console->SetColor(COLORS::LIGHT_PURPLE);
_console->Write(text);
}
void Console::Y(wstring text) {
_console->SetColor(COLORS::LIGHT_YELLOW);
_console->Write(text);
}
bool Console::IsOpen() {
return _console->IsOpen();
}