少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-12 1aeb815836d84ecfddf761a47862efebbba0ad03
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 ]:           Tuesday, February 12, 2019
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class HorseConfig : ConfigBase {
 
        public int HorseID;
        public int ItemID;
        public string Name;
        public int UnlockItemID;
        public int UnlockItemCnt;
        public int InitLV;
        public int MaxLV;
        public int UseNeedRank;
        public int Model;
        public string IconKey;
        public int ActionType;
        public int Quality;
        public int InitFightPower;
        public int ShowFightPower;
        public int Sort;
        public int[] RideAudios;
        public string DescribeIconKey;
 
        public override string getKey()
        {
            return HorseID.ToString();
        }
 
        public override void Parse(string content) {
            try
            {
                var contents = content.Split('\t');
 
                int.TryParse(contents[0],out HorseID);
            
                int.TryParse(contents[1],out ItemID);
            
                Name = contents[2];
            
                int.TryParse(contents[3],out UnlockItemID);
            
                int.TryParse(contents[4],out UnlockItemCnt);
            
                int.TryParse(contents[5],out InitLV);
            
                int.TryParse(contents[6],out MaxLV);
            
                int.TryParse(contents[7],out UseNeedRank);
            
                int.TryParse(contents[8],out Model);
            
                IconKey = contents[9];
            
                int.TryParse(contents[10],out ActionType);
            
                int.TryParse(contents[11],out Quality);
            
                int.TryParse(contents[12],out InitFightPower);
            
                int.TryParse(contents[13],out ShowFightPower);
            
                int.TryParse(contents[14],out Sort);
            
                var RideAudiosStringArray = contents[15].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                RideAudios = new int[RideAudiosStringArray.Length];
                for (int i=0;i<RideAudiosStringArray.Length;i++)
                {
                     int.TryParse(RideAudiosStringArray[i],out RideAudios[i]);
                }
            
                DescribeIconKey = contents[16];
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}