فهرست منبع

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 سال پیش
والد
کامیت
5484921597
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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;