Lua: working events, global and local

This commit is contained in:
Lion Kortlepel
2021-09-16 18:14:11 +02:00
parent e602decb96
commit 1c80a4deb7
4 changed files with 75 additions and 36 deletions

View File

@@ -7,6 +7,8 @@ static std::string LuaToString(const sol::object& Value, size_t Indent = 1) {
return Value.as<std::string>();
case sol::type::number:
return std::to_string(Value.as<float>());
case sol::type::nil:
return "<nil>";
case sol::type::boolean:
return Value.as<bool>() ? "true" : "false";
case sol::type::table: {