Browse Source

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.
Bart van Strien 11 years ago
parent
commit
5484921597
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/common/Variant.h

+ 2 - 1
src/common/Variant.h

@@ -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;