mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Make the stored data and type of Variant public, to allow for non-lua unpacking.
NOTE: Not that useful in the love source, but might be nice if libraries try to interface with it.
This commit is contained in:
@@ -48,7 +48,6 @@ public:
|
||||
static Variant *fromLua(lua_State *L, int n, bool allowTables = true);
|
||||
void toLua(lua_State *L);
|
||||
|
||||
private:
|
||||
enum Type
|
||||
{
|
||||
UNKNOWN = 0,
|
||||
@@ -74,6 +73,8 @@ private:
|
||||
void *userdata;
|
||||
std::vector<std::pair<Variant*, Variant*> > *table;
|
||||
} data;
|
||||
|
||||
private:
|
||||
love::Type udatatype;
|
||||
bits flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user