iw4x-client/src/Components/Modules/ServerCommands.hpp
2017-06-04 14:21:02 +02:00

20 lines
392 B
C++

#pragma once
namespace Components
{
class ServerCommands : public Component
{
public:
ServerCommands();
~ServerCommands();
static void OnCommand(std::int32_t cmd, Utils::Slot<bool(Command::Params*)> cb);
private:
static std::unordered_map<std::int32_t, Utils::Slot<bool(Command::Params*)>> Commands;
static bool OnServerCommand();
static void OnServerCommandStub();
};
}