static int AddChild(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { CFramework.BaseView obj = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); UnityEngine.Transform o = obj.AddChild(arg0); ToLua.Push(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.Transform>(L, 3)) { CFramework.BaseView obj = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.ToObject(L, 3); UnityEngine.Transform o = obj.AddChild(arg0, arg1); ToLua.Push(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes <string>(L, 3)) { CFramework.BaseView obj = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); string arg1 = ToLua.ToString(L, 3); UnityEngine.Transform o = obj.AddChild(arg0, arg1); ToLua.Push(L, o); return(1); } else if (count == 4) { CFramework.BaseView obj = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 3); string arg2 = ToLua.CheckString(L, 4); UnityEngine.Transform o = obj.AddChild(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: CFramework.BaseView.AddChild")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Dispose(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); CFramework.BaseView obj = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 1); obj.Dispose(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveAllChild(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); CFramework.BaseView obj = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); obj.RemoveAllChild(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetChild(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); CFramework.BaseView obj = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 1); string arg0 = ToLua.CheckString(L, 2); UnityEngine.GameObject o = obj.GetChild(arg0); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int New(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); CFramework.LuaComponent obj = (CFramework.LuaComponent)ToLua.CheckObject <CFramework.LuaComponent>(L, 1); LuaTable arg0 = ToLua.CheckLuaTable(L, 2); CFramework.BaseView arg1 = (CFramework.BaseView)ToLua.CheckObject <CFramework.BaseView>(L, 3); obj.New(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_LuaBehaviour(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)ToLua.CheckObject <UnityEngine.MonoBehaviour>(L, 2); obj.LuaBehaviour = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index LuaBehaviour on a nil value")); } }
static int set_Id(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; string arg0 = ToLua.CheckString(L, 2); obj.Id = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Id on a nil value")); } }
static int set_IsCache(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.IsCache = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index IsCache on a nil value")); } }
static int set_PreloadList(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; string[] arg0 = ToLua.CheckStringArray(L, 2); obj.PreloadList = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index PreloadList on a nil value")); } }
static int get_ControlList(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; System.Collections.Generic.Dictionary <string, UnityEngine.Transform> ret = obj.ControlList; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ControlList on a nil value")); } }
static int get_LuaBehaviour(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; UnityEngine.MonoBehaviour ret = obj.LuaBehaviour; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index LuaBehaviour on a nil value")); } }
static int get_Id(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; string ret = obj.Id; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Id on a nil value")); } }
static int get_IsCache(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; bool ret = obj.IsCache; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index IsCache on a nil value")); } }
static int get_PreloadList(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; string[] ret = obj.PreloadList; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index PreloadList on a nil value")); } }
static int get_UiRoot(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.BaseView obj = (CFramework.BaseView)o; UnityEngine.Transform ret = obj.UiRoot; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index UiRoot on a nil value")); } }