/// <summary> /// 初始化添加地图 /// </summary> /// <param name="mapWidth"></param> /// <param name="mapHeight"></param> /// <param name="gridWidth"></param> /// <param name="gridHeight"></param> public GameMap InitAddMap(int mapCode, int mapPicCode, int mapWidth, int mapHeight, int birthPosX, int birthPosY, int birthRadius) { GameMap gameMap = new GameMap() { MapCode = mapCode, MapPicCode = mapPicCode, MapWidth = mapWidth, MapHeight = mapHeight, DefaultBirthPosX = birthPosX, DefaultBirthPosY = birthPosY, BirthRadius = birthRadius, }; gameMap.InitMap(); _DictMaps.Add(mapCode, gameMap); return(gameMap); }