//解析配置
    public override void parseConfig(string str)
    {
        if (maps == null)
        {
            maps = new List <ClmbTowerMap>();
        }
        ClmbTowerMap map = new ClmbTowerMap(str);

        maps.Add(map);
    }
Exemplo n.º 2
0
    //获得指定爬塔地图对应索引的章节sid 索引从1开始
    public int[] getAllShowTowerChapter(int mapId)
    {
        ClmbTowerMap map = ClmbTowerConfigManager.Instance.getClmbTowerMap(mapId);//得到指定大地图的爬塔章节sid[,,,,,]

        if (map == null)
        {
            return(null);
        }
        //应该显示所有的章节
        int tmplastID = map.chapterSids;

        int[] missions = ChapterSampleManager.Instance.getChapterSampleBySid(tmplastID).missions;
        FuBenManagerment.Instance.oldLastTowerChapterID = missions[0];//不考虑后面的 直接弄成第一章
        return(missions);
    }