static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { BehaviorDesigner.Runtime.Tasks.PrioritySelector gen_ret = new BehaviorDesigner.Runtime.Tasks.PrioritySelector(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to BehaviorDesigner.Runtime.Tasks.PrioritySelector constructor!")); }
static int _m_OnStart(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BehaviorDesigner.Runtime.Tasks.PrioritySelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.PrioritySelector)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnStart( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CurrentChildIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BehaviorDesigner.Runtime.Tasks.PrioritySelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.PrioritySelector)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.CurrentChildIndex( ); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }