Example #1
0
        static int _g_get_Order(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.IPathModifier gen_to_be_invoked = (Pathfinding.IPathModifier)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);
        }
Example #2
0
 static int RegisterModifier(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Seeker obj = (Seeker)ToLua.CheckObject <Seeker>(L, 1);
         Pathfinding.IPathModifier arg0 = (Pathfinding.IPathModifier)ToLua.CheckObject <Pathfinding.IPathModifier>(L, 2);
         obj.RegisterModifier(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
        static int _m_DeregisterModifier(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Seeker gen_to_be_invoked = (Pathfinding.Seeker)translator.FastGetCSObj(L, 1);



                {
                    Pathfinding.IPathModifier _modifier = (Pathfinding.IPathModifier)translator.GetObject(L, 2, typeof(Pathfinding.IPathModifier));

                    gen_to_be_invoked.DeregisterModifier(_modifier);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Example #4
0
        static int _m_PreProcess(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.IPathModifier gen_to_be_invoked = (Pathfinding.IPathModifier)translator.FastGetCSObj(L, 1);



                {
                    PF.Path _path = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path));

                    gen_to_be_invoked.PreProcess(_path);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }