feat(profile): add more work related to console

This commit is contained in:
phaneron 2024-12-17 00:28:01 -05:00
parent 08b49c5197
commit e95eb3354d
49 changed files with 9188 additions and 245 deletions

View file

@ -0,0 +1,21 @@
#ifndef CONSOLE_COMMAND_H
#define CONSOLE_COMMAND_H
DECLARE_STRUCT(CONSOLECOMMAND);
#include "console/types.h"
#include "storm/hash.h"
STORM_TS_HASH(CONSOLECOMMAND, HASHKEY_STRI);
typedef int32_t (*COMMANDHANDLER)(const char*, const char*);
// class CONSOLECOMMAND : public TSHashObject<CONSOLECOMMAND, HASHKEY_STRI>
struct CONSOLECOMMAND {
TSHashObject_CONSOLECOMMAND_HASHKEY_STRI b_base;
COMMANDHANDLER m_handler;
const char* m_helpText;
CATEGORY m_category;
};
#endif