//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class UILocalizeTextureWrap { public static void Register(LuaState L) { L.BeginClass(typeof(UILocalizeTexture), typeof(UnityEngine.MonoBehaviour)); L.RegFunction("Refresh", Refresh); L.RegFunction("SetKey", SetKey); L.RegFunction("Dispose", Dispose); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("lgKey", get_lgKey, set_lgKey); L.RegVar("key", get_key, set_key); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Refresh(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject(L, 1); obj.Refresh(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SetKey(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.SetKey(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Dispose(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject(L, 1); obj.Dispose(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1); UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2); bool o = arg0 == arg1; LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_lgKey(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILocalizeTexture obj = (UILocalizeTexture)o; string ret = obj.lgKey; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index lgKey on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_key(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILocalizeTexture obj = (UILocalizeTexture)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 set_lgKey(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILocalizeTexture obj = (UILocalizeTexture)o; string arg0 = ToLua.CheckString(L, 2); obj.lgKey = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index lgKey on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_key(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILocalizeTexture obj = (UILocalizeTexture)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"); } } }