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

                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.colliderRasterizeDetail = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 2
0
        static int _s_set_rasterizeTrees(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.rasterizeTrees = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 3
0
        static int _s_set_relevantGraphSurfaceMode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);
                PF.RecastGraph.RelevantGraphSurfaceMode gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.relevantGraphSurfaceMode = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 4
0
        static int _s_set_forcedBoundsCenter(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.RecastGraph      gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.forcedBoundsCenter = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    PF.RecastGraph gen_ret = new PF.RecastGraph();
                    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 PF.RecastGraph constructor!"));
        }
Esempio n. 6
0
        static int _m_BuildTileMesh(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 5 && translator.Assignable <Pathfinding.Voxels.Voxelize>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    Pathfinding.Voxels.Voxelize _vox = (Pathfinding.Voxels.Voxelize)translator.GetObject(L, 2, typeof(Pathfinding.Voxels.Voxelize));
                    int _x           = LuaAPI.xlua_tointeger(L, 3);
                    int _z           = LuaAPI.xlua_tointeger(L, 4);
                    int _threadIndex = LuaAPI.xlua_tointeger(L, 5);

                    PF.NavmeshTile gen_ret = gen_to_be_invoked.BuildTileMesh(_vox, _x, _z, _threadIndex);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && translator.Assignable <Pathfinding.Voxels.Voxelize>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    Pathfinding.Voxels.Voxelize _vox = (Pathfinding.Voxels.Voxelize)translator.GetObject(L, 2, typeof(Pathfinding.Voxels.Voxelize));
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _z = LuaAPI.xlua_tointeger(L, 4);

                    PF.NavmeshTile gen_ret = gen_to_be_invoked.BuildTileMesh(_vox, _x, _z);
                    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 PF.RecastGraph.BuildTileMesh!"));
        }
        static int _m_SnapForceBoundsToScene(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    PF.RecastGraph _self = (PF.RecastGraph)translator.GetObject(L, 1, typeof(PF.RecastGraph));

                    Pathfinding.UnityHelper.SnapForceBoundsToScene(
                        _self);



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


                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.SnapForceBoundsToScene(  );



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



                {
                    PF.RecastGraph _self = (PF.RecastGraph)translator.GetObject(L, 1, typeof(PF.RecastGraph));

                    System.Collections.Generic.IEnumerable <Pathfinding.Progress> gen_ret = Pathfinding.UnityHelper.ScanAllTiles(
                        _self);
                    translator.PushAny(L, gen_ret);



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


                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);



                {
                    System.Collections.Generic.IEnumerable <Pathfinding.Progress> gen_ret = gen_to_be_invoked.ScanAllTiles(  );
                    translator.PushAny(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_CalculateTransform(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);



                {
                    PF.GraphTransform gen_ret = gen_to_be_invoked.CalculateTransform(  );
                    translator.Push(L, gen_ret);



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


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



                {
                    PF.RecastGraph _graph = (PF.RecastGraph)translator.GetObject(L, 2, typeof(PF.RecastGraph));

                    gen_to_be_invoked.SetGraph(_graph);



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



                {
                    PF.RecastGraph     _self = (PF.RecastGraph)translator.GetObject(L, 1, typeof(PF.RecastGraph));
                    UnityEngine.Bounds _bounds; translator.Get(L, 2, out _bounds);

                    System.Collections.Generic.List <Pathfinding.Voxels.RasterizationMesh> gen_ret = Pathfinding.UnityHelper.CollectMeshes(
                        _self,
                        _bounds);
                    translator.Push(L, gen_ret);



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



                {
                    PF.RecastGraph _self = (PF.RecastGraph)translator.GetObject(L, 1, typeof(PF.RecastGraph));
                    System.Collections.Generic.List <Pathfinding.Voxels.RasterizationMesh> _meshes = (System.Collections.Generic.List <Pathfinding.Voxels.RasterizationMesh>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <Pathfinding.Voxels.RasterizationMesh>));

                    System.Collections.Generic.List <Pathfinding.Voxels.RasterizationMesh>[] gen_ret = Pathfinding.UnityHelper.PutMeshesIntoTileBuckets(
                        _self,
                        _meshes);
                    translator.Push(L, gen_ret);



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


                PF.RecastGraph gen_to_be_invoked = (PF.RecastGraph)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Bounds _bounds; translator.Get(L, 2, out _bounds);

                    System.Collections.Generic.List <Pathfinding.Voxels.RasterizationMesh> gen_ret = gen_to_be_invoked.CollectMeshes(_bounds);
                    translator.Push(L, gen_ret);



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