12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- namespace YLBattle
- {
- public class MapData
- {
- public int id = 0;
- public int level = 1;
- public string name = "";
- public int width = 0;
- public int height = 0;
- /// <summary>
- /// 场景孵化器
- /// </summary>
- public List<ZoneSpawner> spawnUnitList { get; set; }
- int[,] mapInfo;
- public MapData()
- {
- this.spawnUnitList = new List<ZoneSpawner>();
- this.mapInfo = new int[,] { { } };
- }
- public MapData(int mapid)
- {
- }
- public void MapDataCreate()
- {
- for (int i = 0; i < mapInfo.GetLength(0); i++)
- {
- for (int j = 0; j < mapInfo.GetLength(1); j++)
- {
- int id = mapInfo[i, j];
- if (id == 0)
- {
- continue;
- }
- }
- }
- }
- }
- }
|