gdl_123 4 месяцев назад
Родитель
Сommit
366e1b2b54

+ 1 - 0
Assets/ToLua/Editor/Custom/CustomSettings.cs

@@ -346,6 +346,7 @@ public static class CustomSettings
 
 
           _GT (typeof (LocalizedTextureCfgMgr)),
+          _GT (typeof (LocalizedSpriteCfg)),
           _GT (typeof (UILocalizeTexture)),
     };
 

+ 252 - 0
Assets/ToLua/Source/Generate/LocalizedSpriteCfgWrap.cs

@@ -0,0 +1,252 @@
+//this source code was auto-generated by tolua#, do not modify it
+using System;
+using LuaInterface;
+
+public class LocalizedSpriteCfgWrap
+{
+	public static void Register(LuaState L)
+	{
+		L.BeginClass(typeof(LocalizedSpriteCfg), typeof(System.Object));
+		L.RegFunction("GetSetNativeSize", GetSetNativeSize);
+		L.RegFunction("New", _CreateLocalizedSpriteCfg);
+		L.RegFunction("__tostring", ToLua.op_ToString);
+		L.RegVar("key", get_key, set_key);
+		L.RegVar("Language", get_Language, set_Language);
+		L.RegVar("AssetPath", get_AssetPath, set_AssetPath);
+		L.RegVar("OtherSetting", get_OtherSetting, set_OtherSetting);
+		L.RegVar("SetNativeSize", get_SetNativeSize, set_SetNativeSize);
+		L.EndClass();
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int _CreateLocalizedSpriteCfg(IntPtr L)
+	{
+		try
+		{
+			int count = LuaDLL.lua_gettop(L);
+
+			if (count == 0)
+			{
+				LocalizedSpriteCfg obj = new LocalizedSpriteCfg();
+				ToLua.PushObject(L, obj);
+				return 1;
+			}
+			else
+			{
+				return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: LocalizedSpriteCfg.New");
+			}
+		}
+		catch (Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e);
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int GetSetNativeSize(IntPtr L)
+	{
+		try
+		{
+			ToLua.CheckArgsCount(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)ToLua.CheckObject<LocalizedSpriteCfg>(L, 1);
+			bool o = obj.GetSetNativeSize();
+			LuaDLL.lua_pushboolean(L, o);
+			return 1;
+		}
+		catch (Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e);
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int get_key(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string ret = obj.key;
+			LuaDLL.lua_pushstring(L, ret);
+			return 1;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int get_Language(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string ret = obj.Language;
+			LuaDLL.lua_pushstring(L, ret);
+			return 1;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index Language on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int get_AssetPath(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string ret = obj.AssetPath;
+			LuaDLL.lua_pushstring(L, ret);
+			return 1;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index AssetPath on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int get_OtherSetting(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string ret = obj.OtherSetting;
+			LuaDLL.lua_pushstring(L, ret);
+			return 1;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index OtherSetting on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int get_SetNativeSize(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string ret = obj.SetNativeSize;
+			LuaDLL.lua_pushstring(L, ret);
+			return 1;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index SetNativeSize on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int set_key(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string arg0 = ToLua.CheckString(L, 2);
+			obj.key = arg0;
+			return 0;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int set_Language(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string arg0 = ToLua.CheckString(L, 2);
+			obj.Language = arg0;
+			return 0;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index Language on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int set_AssetPath(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string arg0 = ToLua.CheckString(L, 2);
+			obj.AssetPath = arg0;
+			return 0;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index AssetPath on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int set_OtherSetting(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string arg0 = ToLua.CheckString(L, 2);
+			obj.OtherSetting = arg0;
+			return 0;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index OtherSetting on a nil value");
+		}
+	}
+
+	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+	static int set_SetNativeSize(IntPtr L)
+	{
+		object o = null;
+
+		try
+		{
+			o = ToLua.ToObject(L, 1);
+			LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
+			string arg0 = ToLua.CheckString(L, 2);
+			obj.SetNativeSize = arg0;
+			return 0;
+		}
+		catch(Exception e)
+		{
+			return LuaDLL.toluaL_exception(L, e, o, "attempt to index SetNativeSize on a nil value");
+		}
+	}
+}
+

+ 11 - 0
Assets/ToLua/Source/Generate/LocalizedSpriteCfgWrap.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: fa19d39cac764a84ea139fb824fea347
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: