mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-17 04:03:48 +00:00
fix TLuaValue handling to be less odd
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user