Add simple command interface

This commit is contained in:
Lion Kortlepel
2021-11-28 23:45:03 +01:00
parent 1e0ab6bbb3
commit 768d0466f4
6 changed files with 109 additions and 17 deletions

View File

@@ -18,7 +18,14 @@ public:
Commandline& Internal() { return mCommandline; }
private:
void ChangeToLuaConsole();
void ChangeToRegularConsole();
Commandline mCommandline;
std::vector<std::string> mCachedLuaHistory;
std::vector<std::string> mCachedRegularHistory;
TLuaEngine* mLuaEngine { nullptr };
bool mIsLuaConsole { false };
bool mFirstTime { true };
const std::string mStateId = "BEAMMP_SERVER_CONSOLE";
};