Esempio n. 1
0
        public void Initialize(int width, int height, int mapLevel)
        {
            Width    = width;
            Height   = height;
            MapLevel = mapLevel;

            Tiles = new TileData[width * height];

            for (int y = 0; y < Height; ++y)
            {
                for (int x = 0; x < Width; ++x)
                {
                    var index = y * Width + x;

                    var tileData = new TileData();
                    tileData.SetPos(x, y);
                    tileData.SetIndex(index);

                    Tiles[index] = tileData;
                }
            }

            Scanner = new TileDataMapScanner(this);
            Seacher = new TileDataMapSearcher(this);
        }
Esempio n. 2
0
        public void Resume()
        {
            Scanner = new TileDataMapScanner(this);
            Seacher = new TileDataMapSearcher(this);

            // 部屋を作り直す
            BuildRoomMap();
        }