少年修仙传客户端代码仓库
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
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Friday, January 04, 2019
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class GatherSoulPropertyConfig : ConfigBase {
 
        public int AttrType { get ; private set ; }
        public string AttrInfo1 { get ; private set; } 
        public string AttrInfo2 { get ; private set; } 
        public string AttrInfo3 { get ; private set; } 
        public string AttrInfo4 { get ; private set; } 
        public string AttrInfo5 { get ; private set; } 
        public string sort { get ; private set; } 
 
        public override string getKey()
        {
            return AttrType.ToString();
        }
 
        public override void Parse() {
            try
            {
                AttrType=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                AttrInfo1 = rawContents[1].Trim();
            
                AttrInfo2 = rawContents[2].Trim();
            
                AttrInfo3 = rawContents[3].Trim();
            
                AttrInfo4 = rawContents[4].Trim();
            
                AttrInfo5 = rawContents[5].Trim();
            
                sort = rawContents[6].Trim();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}