Scripts/Commands: Add .debug dummy. It does nothing, which means you can make it do anything.

(cherry picked from commit 97ade1321b6d18393202a1448f2b042fc1ff0546)
This commit is contained in:
Treeston
2021-11-08 23:18:32 +01:00
committed by Shauren
parent 4c2313a44b
commit 5ed891a0f0
5 changed files with 23 additions and 1 deletions
+7
View File
@@ -115,6 +115,7 @@ public:
{ "conversation" , rbac::RBAC_PERM_COMMAND_DEBUG_CONVERSATION, false, &HandleDebugConversationCommand, "" },
{ "worldstate" , rbac::RBAC_PERM_COMMAND_DEBUG, false, &HandleDebugWorldStateCommand, "" },
{ "wsexpression" , rbac::RBAC_PERM_COMMAND_DEBUG, false, &HandleDebugWSExpressionCommand, "" },
{ "dummy", rbac::RBAC_PERM_COMMAND_DEBUG_DUMMY, false, &HandleDebugDummyCommand, "" },
};
static std::vector<ChatCommand> commandTable =
{
@@ -1697,6 +1698,12 @@ public:
return true;
};
static bool HandleDebugDummyCommand(ChatHandler* handler, CommandArgs* /*args*/)
{
handler->SendSysMessage("This command does nothing right now. Edit your local core (cs_debug.cpp) to make it do whatever you need for testing.");
return true;
}
};
void AddSC_debug_commandscript()