static int OverrideStatus(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); BehaviorDesigner.Runtime.Tasks.TaskStatus o = obj.OverrideStatus(); ToLua.Push(L, o); return(1); } else if (count == 2) { BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); BehaviorDesigner.Runtime.Tasks.TaskStatus arg0 = (BehaviorDesigner.Runtime.Tasks.TaskStatus)ToLua.CheckObject(L, 2, typeof(BehaviorDesigner.Runtime.Tasks.TaskStatus)); BehaviorDesigner.Runtime.Tasks.TaskStatus o = obj.OverrideStatus(arg0); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: BehaviorDesigner.Runtime.Tasks.ParentTask.OverrideStatus")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnChildStarted(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); obj.OnChildStarted(); return(0); } else if (count == 2) { BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.OnChildStarted(arg0); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: BehaviorDesigner.Runtime.Tasks.ParentTask.OnChildStarted")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnDrawGizmos(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); obj.OnDrawGizmos(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CanExecute(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); bool o = obj.CanExecute(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CurrentChildIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); int o = obj.CurrentChildIndex(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetUtility(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); float o = obj.GetUtility(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnConditionalAbort(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.OnConditionalAbort(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnReevaluationEnded(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); BehaviorDesigner.Runtime.Tasks.TaskStatus arg0 = (BehaviorDesigner.Runtime.Tasks.TaskStatus)ToLua.CheckObject(L, 2, typeof(BehaviorDesigner.Runtime.Tasks.TaskStatus)); obj.OnReevaluationEnded(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Decorate(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); BehaviorDesigner.Runtime.Tasks.TaskStatus arg0 = (BehaviorDesigner.Runtime.Tasks.TaskStatus)ToLua.CheckObject(L, 2, typeof(BehaviorDesigner.Runtime.Tasks.TaskStatus)); BehaviorDesigner.Runtime.Tasks.TaskStatus o = obj.Decorate(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ReplaceAddChild(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); BehaviorDesigner.Runtime.Tasks.Task arg0 = (BehaviorDesigner.Runtime.Tasks.Task)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.Task>(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.ReplaceAddChild(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Children(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)o; System.Collections.Generic.List <BehaviorDesigner.Runtime.Tasks.Task> ret = obj.Children; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Children on a nil value")); } }