private static PointF GetTilePosition(TiledMap map, TiledMapTile mapTile) { switch (map.Orientation) { case TiledMapOrientation.Orthogonal: return(TiledMapHelper.GetOrthogonalPosition(mapTile.X, mapTile.Y, map.TileWidth, map.TileHeight)); case TiledMapOrientation.Isometric: return(TiledMapHelper.GetIsometricPosition(mapTile.X, mapTile.Y, map.TileWidth, map.TileHeight)); default: throw new NotSupportedException($"{map.Orientation} Tiled Maps are not yet implemented."); } }
private static Point2 GetTilePosition(TiledMapContent map, TiledMapTile mapTile) { switch (map.Orientation) { case TiledMapOrientationContent.Orthogonal: return(TiledMapHelper.GetOrthogonalPosition(mapTile.X, mapTile.Y, map.TileWidth, map.TileHeight)); case TiledMapOrientationContent.Isometric: return(TiledMapHelper.GetIsometricPosition(mapTile.X, mapTile.Y, map.TileWidth, map.TileHeight)); case TiledMapOrientationContent.Staggered: throw new NotImplementedException("Staggered maps are not yet implemented."); default: throw new NotSupportedException($"Tiled Map {map.Orientation} is not supported."); } }