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

20 lines
432 B
C++
Raw Normal View History

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