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:
Bart van Strien
2014-04-25 17:44:46 +02:00
parent 3cf2a8f8a2
commit 5484921597
+2 -1
View File
@@ -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;