Add ability to switch into other lua states

This commit is contained in:
Lion Kortlepel
2021-11-29 00:37:00 +01:00
parent c91f3ee33c
commit fc440bea2a
4 changed files with 36 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ public:
Commandline& Internal() { return mCommandline; }
private:
void ChangeToLuaConsole();
void ChangeToLuaConsole(const std::string& LuaStateId);
void ChangeToRegularConsole();
Commandline mCommandline;
@@ -27,5 +27,6 @@ private:
TLuaEngine* mLuaEngine { nullptr };
bool mIsLuaConsole { false };
bool mFirstTime { true };
const std::string mStateId = "BEAMMP_SERVER_CONSOLE";
std::string mStateId;
const std::string mDefaultStateId = "BEAMMP_SERVER_CONSOLE";
};