public TileIdLoader(TileMapSize tileMapSize) { if (tileMapSize == null) { throw new ArgumentNullException("tileMapSize"); } _size = tileMapSize; _expectedIds = tileMapSize.Width * tileMapSize.Height; }
public TileMap(TileMapSize size, IList<TileSet> tileSets, IList<MapLayer> layers) { if (size == null) { throw new ArgumentNullException("size"); } if (tileSets == null) { throw new ArgumentNullException("tileSets"); } if (layers == null) { throw new ArgumentNullException("layers"); } Size = size; TileSets = tileSets; Layers = layers; }