chore(console): move CATEGORY enum to types header

This commit is contained in:
fallenoak 2025-10-01 16:47:57 -05:00
parent 32413a37da
commit 9ed50a0eed
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 15 additions and 14 deletions

View File

@ -1,6 +1,7 @@
#ifndef CONSOLE_COMMAND_HPP #ifndef CONSOLE_COMMAND_HPP
#define CONSOLE_COMMAND_HPP #define CONSOLE_COMMAND_HPP
#include "console/Types.hpp"
#include <storm/Hash.hpp> #include <storm/Hash.hpp>
#include <cstdint> #include <cstdint>
@ -10,20 +11,6 @@
#define HISTORY_DEPTH 32 #define HISTORY_DEPTH 32
#define NOHELP nullptr #define NOHELP nullptr
enum CATEGORY {
DEBUG,
GRAPHICS,
CONSOLE,
COMBAT,
GAME,
DEFAULT,
NET,
SOUND,
GM,
NONE,
LAST
};
struct CONSOLECOMMAND : TSHashObject<CONSOLECOMMAND, HASHKEY_STRI> { struct CONSOLECOMMAND : TSHashObject<CONSOLECOMMAND, HASHKEY_STRI> {
const char* command; const char* command;
int32_t (*handler)(const char*, const char*); int32_t (*handler)(const char*, const char*);

View File

@ -1,6 +1,20 @@
#ifndef CONSOLE_TYPES_HPP #ifndef CONSOLE_TYPES_HPP
#define CONSOLE_TYPES_HPP #define CONSOLE_TYPES_HPP
enum CATEGORY {
DEBUG,
GRAPHICS,
CONSOLE,
COMBAT,
GAME,
DEFAULT,
NET,
SOUND,
GM,
NONE,
LAST
};
enum COLOR_T { enum COLOR_T {
DEFAULT_COLOR, DEFAULT_COLOR,
INPUT_COLOR, INPUT_COLOR,