mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
move all commands to functions
This commit is contained in:
parent
868a511c1e
commit
b11a41fd30
File diff suppressed because it is too large
Load Diff
@ -13,17 +13,10 @@
|
|||||||
class Entity;
|
class Entity;
|
||||||
|
|
||||||
struct Command {
|
struct Command {
|
||||||
Command(std::string help, std::string info, std::vector<std::string> aliases, std::function<void(Entity*,const std::string)> handle, eGameMasterLevel requiredLevel = eGameMasterLevel::DEVELOPER) {
|
|
||||||
this->help = help;
|
|
||||||
this->info = info;
|
|
||||||
this->aliases = aliases;
|
|
||||||
this->handle = handle;
|
|
||||||
this->requiredLevel = requiredLevel;
|
|
||||||
}
|
|
||||||
std::string help;
|
std::string help;
|
||||||
std::string info;
|
std::string info;
|
||||||
std::vector<std::string> aliases;
|
std::vector<std::string> aliases;
|
||||||
std::function<void(Entity*,const std::string)> handle;
|
std::function<void(Entity*, const SystemAddress&,const std::string)> handle;
|
||||||
eGameMasterLevel requiredLevel = eGameMasterLevel::DEVELOPER;
|
eGameMasterLevel requiredLevel = eGameMasterLevel::DEVELOPER;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -35,105 +28,105 @@ namespace SlashCommandHandler {
|
|||||||
};
|
};
|
||||||
|
|
||||||
namespace DEVGMCommands {
|
namespace DEVGMCommands {
|
||||||
void SetGMLevel(Entity* entity, const std::string args);
|
void SetGMLevel(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ToggleNameplate(Entity* entity, const std::string args);
|
void ToggleNameplate(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ToggleSkipCinematics(Entity* entity, const std::string args);
|
void ToggleSkipCinematics(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Kill(Entity* entity, const std::string args);
|
void Kill(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Metrics(Entity* entity, const std::string args);
|
void Metrics(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Announce(Entity* entity, const std::string args);
|
void Announce(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetAnnouncementTitle(Entity* entity, const std::string args);
|
void SetAnnouncementTitle(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetAnnouncementMessage(Entity* entity, const std::string args);
|
void SetAnnouncementMessage(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ShutdownUniverse(Entity* entity, const std::string args);
|
void ShutdownUniverse(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetMinifig(Entity* entity, const std::string args);
|
void SetMinifig(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void TestMap(Entity* entity, const std::string args);
|
void TestMap(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ReportProximityPhysics(Entity* entity, const std::string args);
|
void ReportProximityPhysics(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SpawnPhysicsVerts(Entity* entity, const std::string args);
|
void SpawnPhysicsVerts(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Teleport(Entity* entity, const std::string args);
|
void Teleport(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ActivateSpawner(Entity* entity, const std::string args);
|
void ActivateSpawner(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void AddMission(Entity* entity, const std::string args);
|
void AddMission(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Boost(Entity* entity, const std::string args);
|
void Boost(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Unboost(Entity* entity, const std::string args);
|
void Unboost(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Buff(Entity* entity, const std::string args);
|
void Buff(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void BuffMe(Entity* entity, const std::string args);
|
void BuffMe(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void BuffMedium(Entity* entity, const std::string args);
|
void BuffMedium(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ClearFlag(Entity* entity, const std::string args);
|
void ClearFlag(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void CompleteMission(Entity* entity, const std::string args);
|
void CompleteMission(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void CreatePrivateInstance(Entity* entity, const std::string args);
|
void CreatePrivateInstance(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void DebugUI(Entity* entity, const std::string args);
|
void DebugUI(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Dismount(Entity* entity, const std::string args);
|
void Dismount(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ReloadConfig(Entity* entity, const std::string args);
|
void ReloadConfig(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ForceSave(Entity* entity, const std::string args);
|
void ForceSave(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Freecam(Entity* entity, const std::string args);
|
void Freecam(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void FreeMoney(Entity* entity, const std::string args);
|
void FreeMoney(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void GetNavmeshHeight(Entity* entity, const std::string args);
|
void GetNavmeshHeight(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void GiveUScore(Entity* entity, const std::string args);
|
void GiveUScore(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void GMAddItem(Entity* entity, const std::string args);
|
void GMAddItem(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Inspect(Entity* entity, const std::string args);
|
void Inspect(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ListSpawns(Entity* entity, const std::string args);
|
void ListSpawns(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void LocationRotation(Entity* entity, const std::string args);
|
void LocationRotation(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Lookup(Entity* entity, const std::string args);
|
void Lookup(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void PlayAnimation(Entity* entity, const std::string args);
|
void PlayAnimation(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void PlayEffect(Entity* entity, const std::string args);
|
void PlayEffect(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void PlayLevelFX(Entity* entity, const std::string args);
|
void PlayLevelFX(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void PlayRebuildFX(Entity* entity, const std::string args);
|
void PlayRebuildFX(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Position(Entity* entity, const std::string args);
|
void Position(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void RefilStats(Entity* entity, const std::string args);
|
void RefilStats(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Reforge(Entity* entity, const std::string args);
|
void Reforge(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ResetMission(Entity* entity, const std::string args);
|
void ResetMission(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Rotation(Entity* entity, const std::string args);
|
void Rotation(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void RunMacro(Entity* entity, const std::string args);
|
void RunMacro(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetControlScheme(Entity* entity, const std::string args);
|
void SetControlScheme(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetCurrency(Entity* entity, const std::string args);
|
void SetCurrency(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetFlag(Entity* entity, const std::string args);
|
void SetFlag(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetInventorySize(Entity* entity, const std::string args);
|
void SetInventorySize(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetUIState(Entity* entity, const std::string args);
|
void SetUIState(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Spawn(Entity* entity, const std::string args);
|
void Spawn(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SpawnGroup(Entity* entity, const std::string args);
|
void SpawnGroup(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SpeedBoost(Entity* entity, const std::string args);
|
void SpeedBoost(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void StartCelebration(Entity* entity, const std::string args);
|
void StartCelebration(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void StopEffect(Entity* entity, const std::string args);
|
void StopEffect(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Toggle(Entity* entity, const std::string args);
|
void Toggle(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void TeleportAll(Entity* entity, const std::string args);
|
void TeleportAll(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void TriggerSpawner(Entity* entity, const std::string args);
|
void TriggerSpawner(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void UnlockEmote(Entity* entity, const std::string args);
|
void UnlockEmote(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetLevel(Entity* entity, const std::string args);
|
void SetLevel(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetSkillSlot(Entity* entity, const std::string args);
|
void SetSkillSlot(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetFaction(Entity* entity, const std::string args);
|
void SetFaction(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void AddFaction(Entity* entity, const std::string args);
|
void AddFaction(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void GetFactions(Entity* entity, const std::string args);
|
void GetFactions(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetRewardCode(Entity* entity, const std::string args);
|
void SetRewardCode(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
|
|
||||||
void Crash(Entity* entity, const std::string args);
|
void Crash(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void RollLoot(Entity* entity, const std::string args);
|
void RollLoot(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void CastSkill(Entity* entity, const std::string args);
|
void CastSkill(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace GMZeroCommands {
|
namespace GMZeroCommands {
|
||||||
void Help(Entity* entity, const std::string args);
|
void Help(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Credits(Entity* entity, const std::string args);
|
void Credits(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Info(Entity* entity, const std::string args);
|
void Info(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Die(Entity* entity, const std::string args);
|
void Die(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Ping(Entity* entity, const std::string args);
|
void Ping(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void PVP(Entity* entity, const std::string args);
|
void PVP(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void RequestMailCount(Entity* entity, const std::string args);
|
void RequestMailCount(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Who(Entity* entity, const std::string args);
|
void Who(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void FixStats(Entity* entity, const std::string args);
|
void FixStats(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void JoinPrivateInstance(Entity* entity, const std::string args);
|
void JoinPrivateInstance(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void LeaveZone(Entity* entity, const std::string args);
|
void LeaveZone(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace GreaterThanZeroCommands {
|
namespace GreaterThanZeroCommands {
|
||||||
void Kick(Entity* entity, const std::string args);
|
void Kick(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void MailItem(Entity* entity, const std::string args);
|
void MailItem(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Ban(Entity* entity, const std::string args);
|
void Ban(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void ApproveProperty(Entity* entity, const std::string args);
|
void ApproveProperty(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Mute(Entity* entity, const std::string args);
|
void Mute(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Fly(Entity* entity, const std::string args);
|
void Fly(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void AttackImmune(Entity* entity, const std::string args);
|
void AttackImmune(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void GMImmune(Entity* entity, const std::string args);
|
void GMImmune(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void GMInvis(Entity* entity, const std::string args);
|
void GMInvis(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetName(Entity* entity, const std::string args);
|
void SetName(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Title(Entity* entity, const std::string args);
|
void Title(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SLASHCOMMANDHANDLER_H
|
#endif // SLASHCOMMANDHANDLER_H
|
||||||
|
Loading…
Reference in New Issue
Block a user