mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 19:12:44 +03:00
fix(console): new types included
This commit is contained in:
parent
394d4ac321
commit
ee51e76795
@ -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, ...);
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user