Esempio n. 1
0
        static int _m_CancelCurrentPathRequest(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _pool = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.CancelCurrentPathRequest(_pool);



                    return(0);
                }
                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.CancelCurrentPathRequest(  );



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

            return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.Seeker.CancelCurrentPathRequest!"));
        }
Esempio n. 2
0
        static int _m_RunModifiers(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    Pathfinding.Seeker.ModifierPass _pass; translator.Get(L, 2, out _pass);
                    PF.Path _path = (PF.Path)translator.GetObject(L, 3, typeof(PF.Path));

                    gen_to_be_invoked.RunModifiers(
                        _pass,
                        _path);



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

                Pathfinding.Seeker gen_to_be_invoked = (Pathfinding.Seeker)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.postProcessPath = translator.GetDelegate <PF.OnPathDelegate>(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 4
0
        static int _s_set_graphMask(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.Seeker gen_to_be_invoked = (Pathfinding.Seeker)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.graphMask = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 5
0
        static int _s_set_tagPenalties(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.Seeker gen_to_be_invoked = (Pathfinding.Seeker)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.tagPenalties = (int[])translator.GetObject(L, 2, typeof(int[]));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 6
0
        static int _g_get_postProcessPath(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.Seeker gen_to_be_invoked = (Pathfinding.Seeker)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.postProcessPath);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 7
0
        static int _g_get_traversableTags(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.Seeker gen_to_be_invoked = (Pathfinding.Seeker)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.traversableTags);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 8
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Pathfinding.Seeker gen_ret = new Pathfinding.Seeker();
                    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 Pathfinding.Seeker constructor!"));
        }
Esempio n. 9
0
        static int _m_OnDrawGizmos(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.OnDrawGizmos(  );



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


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



                {
                    PF.Path gen_ret = gen_to_be_invoked.GetCurrentPath(  );
                    translator.Push(L, gen_ret);



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


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



                {
                    bool gen_ret = gen_to_be_invoked.IsDone(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



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


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



                {
                    Pathfinding.Seeker _seeker = (Pathfinding.Seeker)translator.GetObject(L, 2, typeof(Pathfinding.Seeker));

                    gen_to_be_invoked.OnDestroy(_seeker);



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


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



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

                    gen_to_be_invoked.PostProcess(_path);



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3))
                {
                    UnityEngine.Vector3 _start; translator.Get(L, 2, out _start);
                    UnityEngine.Vector3 _end; translator.Get(L, 3, out _end);

                    PF.Path gen_ret = gen_to_be_invoked.StartPath(_start, _end);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <PF.Path>(L, 2) && translator.Assignable <PF.OnPathDelegate>(L, 3))
                {
                    PF.Path           _p        = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path));
                    PF.OnPathDelegate _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 3);

                    PF.Path gen_ret = gen_to_be_invoked.StartPath(_p, _callback);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <PF.Path>(L, 2))
                {
                    PF.Path _p = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path));

                    PF.Path gen_ret = gen_to_be_invoked.StartPath(_p);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && translator.Assignable <PF.Path>(L, 2) && translator.Assignable <PF.OnPathDelegate>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    PF.Path           _p        = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path));
                    PF.OnPathDelegate _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 3);
                    int _graphMask = LuaAPI.xlua_tointeger(L, 4);

                    PF.Path gen_ret = gen_to_be_invoked.StartPath(_p, _callback, _graphMask);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3) && translator.Assignable <PF.OnPathDelegate>(L, 4))
                {
                    UnityEngine.Vector3 _start; translator.Get(L, 2, out _start);
                    UnityEngine.Vector3 _end; translator.Get(L, 3, out _end);
                    PF.OnPathDelegate   _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 4);

                    PF.Path gen_ret = gen_to_be_invoked.StartPath(_start, _end, _callback);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 5 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3) && translator.Assignable <PF.OnPathDelegate>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    UnityEngine.Vector3 _start; translator.Get(L, 2, out _start);
                    UnityEngine.Vector3 _end; translator.Get(L, 3, out _end);
                    PF.OnPathDelegate   _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 4);
                    int _graphMask = LuaAPI.xlua_tointeger(L, 5);

                    PF.Path gen_ret = gen_to_be_invoked.StartPath(_start, _end, _callback, _graphMask);
                    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 Pathfinding.Seeker.StartPath!"));
        }