少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-15 d5bf165ef28b530ed531aed097ad301278c5fcae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Tuesday, November 13, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class MarketQueryConfig : ConfigBase {
 
        public int queryType { get ; private set ; }
        public int[] ChooseType;
 
        public override string getKey()
        {
            return queryType.ToString();
        }
 
        public override void Parse() {
            try
            {
                queryType=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                string[] ChooseTypeStringArray = rawContents[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                ChooseType = new int[ChooseTypeStringArray.Length];
                for (int i=0;i<ChooseTypeStringArray.Length;i++)
                {
                     int.TryParse(ChooseTypeStringArray[i],out ChooseType[i]);
                }
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}