public void GetCubeTriangles(CubeId cubeId, List <MyNavigationTriangle> trianglesOut) { MyGridNavigationMesh mesh = null; if (mesh != null) { mesh.GetCubeTriangles(cubeId.Coords, trianglesOut); } }
public override bool Equals(object obj) { if (obj is CubeId) { CubeId other = (CubeId)obj; return(other.Grid == this.Grid && other.Coords == this.Coords); } else { return(false); } }
public void GetCubeTriangles(CubeId cubeId, List <MyNavigationTriangle> trianglesOut) { MyGridNavigationMesh gridMesh = null; Debug.Assert(m_navigationMeshes.TryGetValue(cubeId.Grid, out gridMesh), "Navigation mesh missing for a grid"); if (gridMesh == null) { return; } gridMesh.GetCubeTriangles(cubeId.Coords, trianglesOut); }
public void GetCubeTriangles(CubeId cubeId, List<MyNavigationTriangle> trianglesOut) { MyGridNavigationMesh gridMesh = null; Debug.Assert(m_navigationMeshes.TryGetValue(cubeId.Grid, out gridMesh), "Navigation mesh missing for a grid"); if (gridMesh == null) return; gridMesh.GetCubeTriangles(cubeId.Coords, trianglesOut); }