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

19 lines
389 B
C++
Raw Normal View History

#pragma once
namespace Components
{
class ServerCommands : public Component
{
public:
ServerCommands();
2022-04-12 08:34:51 -04:00
static void OnCommand(std::int32_t cmd, std::function<bool(Command::Params*)> callback);
private:
2022-04-12 08:34:51 -04:00
static std::unordered_map<std::int32_t, std::function<bool(Command::Params*)>> Commands;
static bool OnServerCommand();
2022-04-12 08:34:51 -04:00
static void CG_DeployServerCommand_Stub();
};
}