From 9ed50a0eed9bba9f39a1f272e498ef9949c5bccf Mon Sep 17 00:00:00 2001 From: fallenoak Date: Wed, 1 Oct 2025 16:47:57 -0500 Subject: [PATCH] chore(console): move CATEGORY enum to types header --- src/console/Command.hpp | 15 +-------------- src/console/Types.hpp | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/console/Command.hpp b/src/console/Command.hpp index 05d71c5..4373fe5 100644 --- a/src/console/Command.hpp +++ b/src/console/Command.hpp @@ -1,6 +1,7 @@ #ifndef CONSOLE_COMMAND_HPP #define CONSOLE_COMMAND_HPP +#include "console/Types.hpp" #include #include @@ -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 { const char* command; int32_t (*handler)(const char*, const char*); diff --git a/src/console/Types.hpp b/src/console/Types.hpp index a66edb1..bbb65be 100644 --- a/src/console/Types.hpp +++ b/src/console/Types.hpp @@ -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,