fix TLuaValue handling to be less odd

This commit is contained in:
Lion Kortlepel
2026-04-19 18:14:04 +00:00
parent 9ca12fc7a6
commit f820d75851
2 changed files with 103 additions and 42 deletions
+1 -9
View File
@@ -59,15 +59,7 @@ namespace fs = std::filesystem;
/**
* std::variant means, that TLuaArgTypes may be one of the Types listed as template args
*/
using TLuaValue = std::variant<std::string, int, JsonString, bool, std::unordered_map<std::string, std::string>, float>;
enum TLuaType {
String = 0,
Int = 1,
Json = 2,
Bool = 3,
StringStringMap = 4,
Float = 5,
};
using TLuaValue = std::variant<std::monostate, std::string, int, JsonString, bool, std::unordered_map<std::string, std::string>, float>;
class TLuaPlugin;