少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-26 82931aabaaa3e479bc04e11630a77cd9c9dd5fe3
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Friday, August 10, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class RealmConfig : ConfigBase {
 
        public int Lv { get ; private set ; }
        public string Name { get ; private set; } 
        public int IsBigRealm { get ; private set ; }
        public int NeedPoint { get ; private set ; }
        public int NeedGood { get ; private set ; }
        public int NeedNum { get ; private set ; }
        public string NeedActiveTreasure { get ; private set; } 
        public int[] AddAttrType;
        public int[] AddAttrNum;
        public int BossID { get ; private set ; }
        public string Img { get ; private set; } 
        public string SitTime { get ; private set; } 
        public int Quality { get ; private set ; }
        public int FightPower { get ; private set ; }
        public int specialProperty { get ; private set ; }
        public int effectId { get ; private set ; }
 
        public override string getKey()
        {
            return Lv.ToString();
        }
 
        public override void Parse() {
            try
            {
                Lv=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                Name = rawContents[1].Trim();
            
                IsBigRealm=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; 
            
                NeedPoint=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
            
                NeedGood=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
            
                NeedNum=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; 
            
                NeedActiveTreasure = rawContents[6].Trim();
            
                string[] AddAttrTypeStringArray = rawContents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                AddAttrType = new int[AddAttrTypeStringArray.Length];
                for (int i=0;i<AddAttrTypeStringArray.Length;i++)
                {
                     int.TryParse(AddAttrTypeStringArray[i],out AddAttrType[i]);
                }
            
                string[] AddAttrNumStringArray = rawContents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                AddAttrNum = new int[AddAttrNumStringArray.Length];
                for (int i=0;i<AddAttrNumStringArray.Length;i++)
                {
                     int.TryParse(AddAttrNumStringArray[i],out AddAttrNum[i]);
                }
            
                BossID=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; 
            
                Img = rawContents[10].Trim();
            
                SitTime = rawContents[11].Trim();
            
                Quality=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; 
            
                FightPower=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; 
            
                specialProperty=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; 
            
                effectId=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; 
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}