mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-21 14:58:09 +00:00
WIP, but working
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -7,13 +7,37 @@
|
||||
#define SLASHCOMMANDHANDLER_H
|
||||
|
||||
#include "RakNetTypes.h"
|
||||
#include "eGameMasterLevel.h"
|
||||
#include <string>
|
||||
|
||||
class Entity;
|
||||
|
||||
namespace SlashCommandHandler {
|
||||
void HandleChatCommand(const std::u16string& command, Entity* entity, const SystemAddress& sysAddr);
|
||||
void SendAnnouncement(const std::string& title, const std::string& message);
|
||||
struct Command {
|
||||
std::string description = "Default Command Description";
|
||||
std::string help = "Default Command Help Text";
|
||||
eGameMasterLevel requiredLevel = eGameMasterLevel::DEVELOPER;
|
||||
std::function<void(Entity*,const std::string)> handle;
|
||||
};
|
||||
|
||||
namespace SlashCommandHandler {
|
||||
void Startup();
|
||||
void HandleChatCommand(const std::u16string& command, Entity* entity, const SystemAddress& sysAddr);
|
||||
void SendAnnouncement(const std::string& title, const std::string& message);
|
||||
void RegisterCommand(Command info, std::string command);
|
||||
};
|
||||
|
||||
namespace DEVGMCommands {
|
||||
void SetGMLevel(Entity* entity, const std::string args);
|
||||
void ToggleNameplate(Entity* entity, const std::string args);
|
||||
void ToggleSkipCinematics(Entity* entity, const std::string args);
|
||||
|
||||
}
|
||||
|
||||
namespace GMZeroCommands {
|
||||
void Help(Entity* entity, const std::string args);
|
||||
}
|
||||
|
||||
namespace GreaterThanZeroCommands {
|
||||
}
|
||||
|
||||
#endif // SLASHCOMMANDHANDLER_H
|
||||
|
Reference in New Issue
Block a user