fix(console): new types included

This commit is contained in:
superp00t 2023-08-16 17:38:37 -04:00
parent 394d4ac321
commit ee51e76795
2 changed files with 11 additions and 20 deletions

View File

@ -2,7 +2,6 @@
#define CONSOLE_LINE_HPP
#include "console/Types.hpp"
#include "gx/Font.hpp"
#include <storm/List.hpp>
@ -10,19 +9,6 @@
#define CONSOLE_LINE_LENGTH 1024
#define CONSOLE_LINE_PREALLOC 16
class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
public:
char* buffer;
uint32_t chars;
uint32_t charsalloc;
uint32_t inputpos;
uint32_t inputstart;
COLOR_T colorType;
CGxString* fontPointer;
~CONSOLELINE();
};
void ConsoleWrite(const char* str, COLOR_T color);
void ConsoleWriteA(const char* str, COLOR_T color, ...);

View File

@ -1,6 +1,11 @@
#ifndef CONSOLE_TYPES_HPP
#define CONSOLE_TYPES_HPP
#include "gx/Font.hpp"
#include <storm/Hash.hpp>
#include <storm/List.hpp>
enum COLOR_T {
DEFAULT_COLOR,
INPUT_COLOR,
@ -45,12 +50,12 @@ class CONSOLECOMMAND : public TSHashObject<CONSOLECOMMAND, HASHKEY_STRI> {
class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
public:
char* buffer;
uint32_t chars;
uint32_t charsalloc;
uint32_t inputpos;
uint32_t inputstart;
COLOR_T colorType;
char* buffer;
uint32_t chars;
uint32_t charsalloc;
uint32_t inputpos;
uint32_t inputstart;
COLOR_T colorType;
CGxString* fontPointer;
~CONSOLELINE();