Exemple #1
0
        public TileIdLoader(TileMapSize tileMapSize)
        {
            if (tileMapSize == null)
            {
                throw new ArgumentNullException("tileMapSize");
            }

            _size = tileMapSize;
            _expectedIds = tileMapSize.Width * tileMapSize.Height;
        }
Exemple #2
0
        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;
        }