1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Allow ingame console to use clientside commands and print output

This commit is contained in:
Dydzio
2023-01-06 21:01:00 +01:00
parent b1c008179d
commit 622e012fcf
6 changed files with 95 additions and 51 deletions

View File

@@ -15,13 +15,16 @@ class CIntObject;
class ClientCommandManager
{
static bool currentCallFromIngameConsole;
static void giveTurn(const PlayerColor &color);
static void removeGUI();
static void printInfoAboutInterfaceObject(const CIntObject *obj, int level);
public:
#ifndef VCMI_IOS
static void processCommand(const std::string &message);
#endif
static void printCommandMessage(const std::string &commandMessage, ELogLevel::ELogLevel messageType = ELogLevel::NOT_SET);
static void handleGoSolo();
static void handleControlAi(const std::string &colorName);
public:
ClientCommandManager() = delete;
static void processCommand(const std::string &message, bool calledFromIngameConsole);
};