少年修仙传客户端代码仓库
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
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Thursday, September 20, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class TreasurePrivilegeConfig : ConfigBase {
 
        public int PrivilegeID { get ; private set ; }
        public string Description { get ; private set; } 
        public string EffectValue { get ; private set; } 
        public int singleValue { get ; private set ; }
        public int maxValue { get ; private set ; }
        public string attr { get ; private set; } 
        public string itemAward { get ; private set; } 
        public int[] successList;
        public int treasureId { get ; private set ; }
        public int sort { get ; private set ; }
        public string Icon { get ; private set; } 
        public string Name { get ; private set; } 
        public string targetDescription { get ; private set; } 
        public int effectId { get ; private set ; }
 
        public override string getKey()
        {
            return PrivilegeID.ToString();
        }
 
        public override void Parse() {
            try
            {
                PrivilegeID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                Description = rawContents[1].Trim();
            
                EffectValue = rawContents[2].Trim();
            
                singleValue=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
            
                maxValue=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
            
                attr = rawContents[5].Trim();
            
                itemAward = rawContents[6].Trim();
            
                string[] successListStringArray = rawContents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                successList = new int[successListStringArray.Length];
                for (int i=0;i<successListStringArray.Length;i++)
                {
                     int.TryParse(successListStringArray[i],out successList[i]);
                }
            
                treasureId=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
            
                sort=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; 
            
                Icon = rawContents[10].Trim();
            
                Name = rawContents[11].Trim();
            
                targetDescription = rawContents[12].Trim();
            
                effectId=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; 
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}