static int FindLast(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); System.Predicate <VisowFrameWork.LuaComponent> arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Predicate <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 2, typeof(System.Predicate <VisowFrameWork.LuaComponent>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Predicate <VisowFrameWork.LuaComponent>), func) as System.Predicate <VisowFrameWork.LuaComponent>; } VisowFrameWork.LuaComponent o = obj.FindLast(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnEnable(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 1); obj.OnEnable(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void Awake() { for (int i = 0; i < luaComponenetName.Count; i++) { LuaComponent lua = CreateLuaComponent(luaComponenetName[i]); if (lua != null) { lua.modelName = luaComponenetName[i]; lua.content = this; lua.Awake(); luaComponenetList.Add(lua); } } }
static int Focus(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.Focus(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Add(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); VisowFrameWork.LuaComponent arg0 = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 2); obj.Add(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetHandler(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 1); LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2); obj.SetHandler(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreateLuaComponent(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); VisowFrameWork.LuaComponent o = VisowFrameWork.LuaComponentGroup.CreateLuaComponent(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _get_this(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); VisowFrameWork.LuaComponent o = obj[arg0]; ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetLuaComponent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); VisowFrameWork.LuaComponentGroup obj = (VisowFrameWork.LuaComponentGroup)ToLua.CheckObject <VisowFrameWork.LuaComponentGroup>(L, 1); string arg0 = ToLua.CheckString(L, 2); VisowFrameWork.LuaComponent o = obj.GetLuaComponent(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Remove(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); VisowFrameWork.LuaComponent arg0 = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 2); bool o = obj.Remove(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_Item(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); VisowFrameWork.LuaComponent arg1 = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 3); obj[arg0] = arg1; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_content(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)o; VisowFrameWork.LuaComponentGroup arg0 = (VisowFrameWork.LuaComponentGroup)ToLua.CheckObject <VisowFrameWork.LuaComponentGroup>(L, 2); obj.content = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index content on a nil value")); } }
static int get_modelName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)o; string ret = obj.modelName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index modelName on a nil value")); } }
static int get_lifecyleHandler(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)o; LuaInterface.LuaFunction ret = obj.lifecyleHandler; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index lifecyleHandler on a nil value")); } }
static int get_content(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)o; VisowFrameWork.LuaComponentGroup ret = obj.content; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index content on a nil value")); } }
static int get_gameObject(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)o; UnityEngine.GameObject ret = obj.gameObject; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameObject on a nil value")); } }
static int set_modelName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)o; string arg0 = ToLua.CheckString(L, 2); obj.modelName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index modelName on a nil value")); } }
static int set_lifecyleHandler(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)o; LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2); obj.lifecyleHandler = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index lifecyleHandler on a nil value")); } }
static int BinarySearch(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); VisowFrameWork.LuaComponent arg0 = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 2); int o = obj.BinarySearch(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } else if (count == 3) { System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); VisowFrameWork.LuaComponent arg0 = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 2); System.Collections.Generic.IComparer <VisowFrameWork.LuaComponent> arg1 = (System.Collections.Generic.IComparer <VisowFrameWork.LuaComponent>)ToLua.CheckObject <System.Collections.Generic.IComparer <VisowFrameWork.LuaComponent> >(L, 3); int o = obj.BinarySearch(arg0, arg1); LuaDLL.lua_pushinteger(L, o); return(1); } else if (count == 5) { System.Collections.Generic.List <VisowFrameWork.LuaComponent> obj = (System.Collections.Generic.List <VisowFrameWork.LuaComponent>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <VisowFrameWork.LuaComponent>)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); VisowFrameWork.LuaComponent arg2 = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 4); System.Collections.Generic.IComparer <VisowFrameWork.LuaComponent> arg3 = (System.Collections.Generic.IComparer <VisowFrameWork.LuaComponent>)ToLua.CheckObject <System.Collections.Generic.IComparer <VisowFrameWork.LuaComponent> >(L, 5); int o = obj.BinarySearch(arg0, arg1, arg2, arg3); LuaDLL.lua_pushinteger(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: System.Collections.Generic.List<VisowFrameWork.LuaComponent>.BinarySearch")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateVisowFrameWork_LuaComponent(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { VisowFrameWork.LuaComponent obj = new VisowFrameWork.LuaComponent(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: VisowFrameWork.LuaComponent.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }