//解析配置
 public override void parseConfig(string str)
 {
     string[] arr = str.Split('|');
     sid         = StringKit.toInt(arr[0]);
     savePoints  = StringKit.toArrayInt(arr[1], ',');
     propIds     = StringKit.toArrayInt(arr[2], ',');
     pointAwards = arr[3].Split('#');
 }
Exemplo n.º 2
0
    public int pveCost = 0;    //消耗行动力

    public override void parse(int sid, string str)
    {
        this.sid = sid;
        string[] strArr = str.Split('|');
//		checkLength (strArr.Length, 17);

        //strArr[0] is sid
        //strArr[1] name
        this.name = strArr [1];
        //strArr[2] describe
        this.describe = strArr [2];
        //strArr[3] chapterType
        this.chapterSid = StringKit.toInt(strArr [3]);
        //strArr[4] level
        this.level = StringKit.toInt(strArr [4]);
        //strArr[5] num
        parseNum(strArr [5]);
        //strArr[6] timeSid
        this.timeSid = StringKit.toInt(strArr [6]);
        //strArr[7]  points
        parsePoints(strArr [7]);
        //strArr[8] firstPrizes
        parseFirstPrizes(strArr [8]);
        //strArr[9] prizes
        parsePrizes(strArr [9]);
        //strArr[10] boss
        parseBoss(strArr [10]);
        //strArr[11] bloodType
        this.bloodType = StringKit.toInt(strArr [11]);
        ////strArr[12] teamType
        this.teamType = StringKit.toInt(strArr[12]);
        //strArr[12] combat
        this.recommendedCombat = StringKit.toArrayInt(strArr [13], ',');

        parseOther(strArr [14]);
        parseWeather(strArr [15]);
        this.maxStar = StringKit.toInt(strArr [16]);         //最大难度数
        this.pveCost = StringKit.toInt(strArr [17]);         //消耗行动力
    }