mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 08:20:40 +00:00
Add simple command interface
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace LuaAPI {
|
||||
int PanicHandler(lua_State* State);
|
||||
|
||||
std::string LuaToString(const sol::object Value, size_t Indent = 1, bool QuoteStrings = false);
|
||||
void Print(sol::variadic_args);
|
||||
namespace MP {
|
||||
extern TLuaEngine* Engine;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user