chore(console): move CATEGORY enum to types header

This commit is contained in:
fallenoak committed 2025-10-01 16:47:57 -05:00
1 parent 32413a37da
commit 9ed50a0eed
2 files changed
+15 -14

No files matched your search

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