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

@@ -6,7 +6,7 @@
#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
static std::string LuaToString(const sol::object Value, size_t Indent = 1, bool QuoteStrings = false) {
std::string LuaAPI::LuaToString(const sol::object Value, size_t Indent, bool QuoteStrings) {
if (Indent > 80) {
return "[[possible recursion, refusing to keep printing]]";
}