static int _m_CreateTile(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { PF.RecastGraph _self = (PF.RecastGraph)translator.GetObject(L, 1, typeof(PF.RecastGraph)); Pathfinding.Voxels.Voxelize _vox = (Pathfinding.Voxels.Voxelize)translator.GetObject(L, 2, typeof(Pathfinding.Voxels.Voxelize)); Pathfinding.Voxels.VoxelMesh _mesh; translator.Get(L, 3, out _mesh); int _x = LuaAPI.xlua_tointeger(L, 4); int _z = LuaAPI.xlua_tointeger(L, 5); int _threadIndex = LuaAPI.xlua_tointeger(L, 6); PF.NavmeshTile gen_ret = Pathfinding.UnityHelper.CreateTile( _self, _vox, _mesh, _x, _z, _threadIndex); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CreateNavmeshSurfaceVisualization(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { PF.NavmeshBase _navmeshBase = (PF.NavmeshBase)translator.GetObject(L, 1, typeof(PF.NavmeshBase)); PF.NavmeshTile _tile = (PF.NavmeshTile)translator.GetObject(L, 2, typeof(PF.NavmeshTile)); Pathfinding.Util.GraphGizmoHelper _helper = (Pathfinding.Util.GraphGizmoHelper)translator.GetObject(L, 3, typeof(Pathfinding.Util.GraphGizmoHelper)); Pathfinding.UnityHelper.CreateNavmeshSurfaceVisualization( _navmeshBase, _tile, _helper); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetVertexInGraphSpace(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavmeshTile gen_to_be_invoked = (PF.NavmeshTile)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); PF.Int3 gen_ret = gen_to_be_invoked.GetVertexInGraphSpace( _index); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetTileCoordinates(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavmeshTile gen_to_be_invoked = (PF.NavmeshTile)translator.FastGetCSObj(L, 1); { int _tileIndex = LuaAPI.xlua_tointeger(L, 2); int _x; int _z; gen_to_be_invoked.GetTileCoordinates(_tileIndex, out _x, out _z); LuaAPI.xlua_pushinteger(L, _x); LuaAPI.xlua_pushinteger(L, _z); return(2); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_BuildTileMesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 5 && translator.Assignable <PF.RecastGraph>(L, 1) && 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)) { PF.RecastGraph _self = (PF.RecastGraph)translator.GetObject(L, 1, typeof(PF.RecastGraph)); 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 = Pathfinding.UnityHelper.BuildTileMesh( _self, _vox, _x, _z, _threadIndex); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 4 && translator.Assignable <PF.RecastGraph>(L, 1) && translator.Assignable <Pathfinding.Voxels.Voxelize>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { PF.RecastGraph _self = (PF.RecastGraph)translator.GetObject(L, 1, typeof(PF.RecastGraph)); 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 = Pathfinding.UnityHelper.BuildTileMesh( _self, _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 Pathfinding.UnityHelper.BuildTileMesh!")); }
static int _s_set_graph(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavmeshTile gen_to_be_invoked = (PF.NavmeshTile)translator.FastGetCSObj(L, 1); gen_to_be_invoked.graph = (PF.NavmeshBase)translator.GetObject(L, 2, typeof(PF.NavmeshBase)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_flag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavmeshTile gen_to_be_invoked = (PF.NavmeshTile)translator.FastGetCSObj(L, 1); gen_to_be_invoked.flag = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_bbTree(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavmeshTile gen_to_be_invoked = (PF.NavmeshTile)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.bbTree); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { PF.NavmeshTile gen_ret = new PF.NavmeshTile(); 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.NavmeshTile constructor!")); }
static int _m_GetNodes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavmeshTile gen_to_be_invoked = (PF.NavmeshTile)translator.FastGetCSObj(L, 1); { System.Action <PF.GraphNode> _action = translator.GetDelegate <System.Action <PF.GraphNode> >(L, 2); gen_to_be_invoked.GetNodes(_action); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }