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

19 lines
371 B
C++
Raw Normal View History

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