少年修仙传客户端代码仓库
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
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Sunday, April 08, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class RoleStrongerConfig : ConfigBase {
 
        public int id { get ; private set ; }
        public int funcType { get ; private set ; }
        public string Name { get ; private set; } 
        public int funcId { get ; private set ; }
        public int LV { get ; private set ; }
        public int[] conditions;
        public int targetValue { get ; private set ; }
        public int recommendFightPower { get ; private set ; }
        public int strongerFightPower { get ; private set ; }
        public string title { get ; private set; } 
        public string desc { get ; private set; } 
        public string Icon { get ; private set; } 
        public int OpenUI { get ; private set ; }
 
        public override string getKey()
        {
            return id.ToString();
        }
 
        public override void Parse() {
            try
            {
                id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                funcType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; 
            
                Name = rawContents[2].Trim();
            
                funcId=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
            
                LV=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
            
                string[] conditionsStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                conditions = new int[conditionsStringArray.Length];
                for (int i=0;i<conditionsStringArray.Length;i++)
                {
                     int.TryParse(conditionsStringArray[i],out conditions[i]);
                }
            
                targetValue=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; 
            
                recommendFightPower=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; 
            
                strongerFightPower=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
            
                title = rawContents[9].Trim();
            
                desc = rawContents[10].Trim();
            
                Icon = rawContents[11].Trim();
            
                OpenUI=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; 
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}