mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +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);
|
static Variant *fromLua(lua_State *L, int n, bool allowTables = true);
|
||||||
void toLua(lua_State *L);
|
void toLua(lua_State *L);
|
||||||
|
|
||||||
private:
|
|
||||||
enum Type
|
enum Type
|
||||||
{
|
{
|
||||||
UNKNOWN = 0,
|
UNKNOWN = 0,
|
||||||
@@ -74,6 +73,8 @@ private:
|
|||||||
void *userdata;
|
void *userdata;
|
||||||
std::vector<std::pair<Variant*, Variant*> > *table;
|
std::vector<std::pair<Variant*, Variant*> > *table;
|
||||||
} data;
|
} data;
|
||||||
|
|
||||||
|
private:
|
||||||
love::Type udatatype;
|
love::Type udatatype;
|
||||||
bits flags;
|
bits flags;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user