iw4x-client/src/Components/Modules/ClientCommand.hpp

26 lines
762 B
C++
Raw Normal View History

#pragma once
namespace Components
{
class ClientCommand : public Component
{
public:
ClientCommand();
2022-03-15 20:44:59 -04:00
2022-08-21 12:52:54 -04:00
static void Add(const char* name, const std::function<void(Game::gentity_s*, const Command::ServerParams*)>& callback);
static bool CheatsOk(const Game::gentity_s* ent);
private:
2022-08-21 12:52:54 -04:00
static std::unordered_map<std::string, std::function<void(Game::gentity_s*, const Command::ServerParams*)>> HandlersSV;
static void ClientCommandStub(int clientNum);
static void AddCheatCommands();
2022-04-12 08:34:51 -04:00
static void AddDevelopmentCommands();
static void AddScriptFunctions();
static const char* EntInfoLine(int entNum);
static void G_DumpEntityDebugInfoToConsole(bool logfileOnly);
static void G_DumpEntityDebugInfoToCSV(const char* filenameSuffix);
};
}