少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-24 23fa9c7fed658719cdb2d4e985a9dcb4a19f9017
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
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Tuesday, January 08, 2019
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class FashionDressConfig : ConfigBase {
 
        public int CoatID { get ; private set ; }
        public string name { get ; private set; } 
        public int type { get ; private set ; }
        public int quality { get ; private set ; }
        public string getWay { get ; private set; } 
        public int[] EquipItemID;
        public int UnlockItemID { get ; private set ; }
        public int MaxLV { get ; private set ; }
        public int[] CostItemCnt;
        public string StarAttr { get ; private set; } 
 
        public override string getKey()
        {
            return CoatID.ToString();
        }
 
        public override void Parse() {
            try
            {
                CoatID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                name = rawContents[1].Trim();
            
                type=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; 
            
                quality=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
            
                getWay = rawContents[4].Trim();
            
                string[] EquipItemIDStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                EquipItemID = new int[EquipItemIDStringArray.Length];
                for (int i=0;i<EquipItemIDStringArray.Length;i++)
                {
                     int.TryParse(EquipItemIDStringArray[i],out EquipItemID[i]);
                }
            
                UnlockItemID=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; 
            
                MaxLV=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; 
            
                string[] CostItemCntStringArray = rawContents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                CostItemCnt = new int[CostItemCntStringArray.Length];
                for (int i=0;i<CostItemCntStringArray.Length;i++)
                {
                     int.TryParse(CostItemCntStringArray[i],out CostItemCnt[i]);
                }
            
                StarAttr = rawContents[9].Trim();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}