DotTiled/src/DotTiled.Tests/TestData/Maps/map-with-infinite-and-empty-chunks/map-with-infinite-and-empty-chunks.cs

39 lines
857 B
C#
Raw Normal View History

namespace DotTiled.Tests;
public partial class TestData
{
public static Map MapWithInfiniteAndEmptyChunks() => new Map
{
Class = "",
Orientation = MapOrientation.Orthogonal,
Width = 5,
Height = 5,
TileWidth = 32,
TileHeight = 32,
Infinite = true,
ParallaxOriginX = 0,
ParallaxOriginY = 0,
RenderOrder = RenderOrder.RightDown,
CompressionLevel = -1,
BackgroundColor = new TiledColor { R = 0, G = 0, B = 0, A = 0 },
Version = "1.10",
TiledVersion = "1.11.0",
NextLayerID = 2,
NextObjectID = 1,
Layers = [
new TileLayer
{
ID = 1,
Name = "Tile Layer 1",
Width = 5,
Height = 5,
Data = new Data
{
Encoding = DataEncoding.Csv,
Chunks = new Optional<Chunk[]>(Array.Empty<Chunk>())
}
}
]
};
}