少年修仙传客户端代码仓库
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Tuesday, September 18, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class TreasureConfig : ConfigBase {
 
        public int ID { get ; private set ; }
        public int Category { get ; private set ; }
        public int PreTreasure { get ; private set ; }
        public string Name { get ; private set; } 
        public string Icon { get ; private set; } 
        public string NameIcon { get ; private set; } 
        public string TreasureNameIcon { get ; private set; } 
        public string Model { get ; private set; } 
        public string SourceDescription { get ; private set; } 
        public string Story { get ; private set; } 
        public string IndexTitle { get ; private set; } 
        public string StoryName { get ; private set; } 
        public int RequirementTotal { get ; private set ; }
        public int[] Achievements;
        public int MapId { get ; private set ; }
        public int LineId { get ; private set ; }
        public int ChallengeLevel { get ; private set ; }
        public int[] Potentials;
        public int[] SkillPower;
        public string NeedItem { get ; private set; } 
        public int EffectID { get ; private set ; }
        public string[] Verse;
        public int ShowNetGotEffect { get ; private set ; }
        public int PreferredStage { get ; private set ; }
 
        public override string getKey()
        {
            return ID.ToString();
        }
 
        public override void Parse() {
            try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                Category=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; 
            
                PreTreasure=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; 
            
                Name = rawContents[3].Trim();
            
                Icon = rawContents[4].Trim();
            
                NameIcon = rawContents[5].Trim();
            
                TreasureNameIcon = rawContents[6].Trim();
            
                Model = rawContents[7].Trim();
            
                SourceDescription = rawContents[8].Trim();
            
                Story = rawContents[9].Trim();
            
                IndexTitle = rawContents[10].Trim();
            
                StoryName = rawContents[11].Trim();
            
                RequirementTotal=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; 
            
                string[] AchievementsStringArray = rawContents[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                Achievements = new int[AchievementsStringArray.Length];
                for (int i=0;i<AchievementsStringArray.Length;i++)
                {
                     int.TryParse(AchievementsStringArray[i],out Achievements[i]);
                }
            
                MapId=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; 
            
                LineId=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; 
            
                ChallengeLevel=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; 
            
                string[] PotentialsStringArray = rawContents[17].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                Potentials = new int[PotentialsStringArray.Length];
                for (int i=0;i<PotentialsStringArray.Length;i++)
                {
                     int.TryParse(PotentialsStringArray[i],out Potentials[i]);
                }
            
                string[] SkillPowerStringArray = rawContents[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                SkillPower = new int[SkillPowerStringArray.Length];
                for (int i=0;i<SkillPowerStringArray.Length;i++)
                {
                     int.TryParse(SkillPowerStringArray[i],out SkillPower[i]);
                }
            
                NeedItem = rawContents[19].Trim();
            
                EffectID=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0; 
            
                Verse = rawContents[21].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            
                ShowNetGotEffect=IsNumeric(rawContents[22]) ? int.Parse(rawContents[22]):0; 
            
                PreferredStage=IsNumeric(rawContents[23]) ? int.Parse(rawContents[23]):0; 
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}