少年修仙传客户端代码仓库
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
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Tuesday, May 15, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class TreasureFindHostConfig : ConfigBase {
 
        public int ID { get ; private set ; }
        public int Type { get ; private set ; }
        public int NeedCnt { get ; private set ; }
        public string Condition { get ; private set; } 
        public int MagicWeaponID { get ; private set ; }
        public string AwardItemList { get ; private set; } 
        public string Money { get ; private set; } 
        public string AdviceIds { get ; private set; } 
        public int JumpID { get ; private set ; }
        public string[] EffectIconKeys;
 
        public override string getKey()
        {
            return ID.ToString();
        }
 
        public override void Parse() {
            try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                Type=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; 
            
                NeedCnt=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; 
            
                Condition = rawContents[3].Trim();
            
                MagicWeaponID=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
            
                AwardItemList = rawContents[5].Trim();
            
                Money = rawContents[6].Trim();
            
                AdviceIds = rawContents[7].Trim();
            
                JumpID=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
            
                EffectIconKeys = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}