static int _g_get_Order(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.MonoModifier gen_to_be_invoked = (Pathfinding.MonoModifier)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Order); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_seeker(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.MonoModifier gen_to_be_invoked = (Pathfinding.MonoModifier)translator.FastGetCSObj(L, 1); gen_to_be_invoked.seeker = (Pathfinding.Seeker)translator.GetObject(L, 2, typeof(Pathfinding.Seeker)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_Apply(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.MonoModifier gen_to_be_invoked = (Pathfinding.MonoModifier)translator.FastGetCSObj(L, 1); { PF.Path _path = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path)); gen_to_be_invoked.Apply(_path); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }