Пример #1
0
		public GameMap ()
		{
			CMapGenerator map = new CMapGenerator ();
			Cells = new Cell[map.MapSize.Size];
			PlayerStart = map.PlayerStart;
			Size = map.MapSize;
			for (int i = 0; i < Size.Size; i++) {
				Cells [i] = new Cell ();
				Cells [i].SetTile (CreateTile (map.Tiles [i], i));
			}
		}
Пример #2
0
        public GameMap()
        {
            CMapGenerator map = new CMapGenerator();

            Cells       = new Cell[map.MapSize.Size];
            PlayerStart = map.PlayerStart;
            Size        = map.MapSize;
            for (int i = 0; i < Size.Size; i++)
            {
                Cells [i] = new Cell();
                Cells [i].SetTile(CreateTile(map.Tiles [i], i));
            }
        }