少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-27 45c82c513c67130bb52cb5e7f2f10c957e463cf1
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Monday, October 15, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class DungeonOpenTimeConfig : ConfigBase {
 
        public int DataMapID { get ; private set ; }
        public string FBName { get ; private set; } 
        public int OpenServerDay { get ; private set ; }
        public int CanEnterTime { get ; private set ; }
        public int DayTimes { get ; private set ; }
        public int DayReKind { get ; private set ; }
        public int WeekTimes { get ; private set ; }
        public int WeekReKind { get ; private set ; }
        public int FBType { get ; private set ; }
        public int[] RewardRate;
        public int BuyTimesID { get ; private set ; }
        public int ExtraTimesID { get ; private set ; }
        public int DeathTime { get ; private set ; }
        public int GuardPick { get ; private set ; }
        public int DoFight { get ; private set ; }
        public int HelpPoint { get ; private set ; }
        public int DelayTime { get ; private set ; }
        public int Movable { get ; private set ; }
        public int Skillable { get ; private set ; }
        public int SelectPlayerable { get ; private set ; }
        public string ExitDescription { get ; private set; } 
        public string PanelImg { get ; private set; } 
        public int[] ElixirHint;
 
        public override string getKey()
        {
            return DataMapID.ToString();
        }
 
        public override void Parse() {
            try
            {
                DataMapID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                FBName = rawContents[1].Trim();
            
                OpenServerDay=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; 
            
                CanEnterTime=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
            
                DayTimes=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
            
                DayReKind=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; 
            
                WeekTimes=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; 
            
                WeekReKind=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; 
            
                FBType=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
            
                string[] RewardRateStringArray = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                RewardRate = new int[RewardRateStringArray.Length];
                for (int i=0;i<RewardRateStringArray.Length;i++)
                {
                     int.TryParse(RewardRateStringArray[i],out RewardRate[i]);
                }
            
                BuyTimesID=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0; 
            
                ExtraTimesID=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; 
            
                DeathTime=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; 
            
                GuardPick=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; 
            
                DoFight=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; 
            
                HelpPoint=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; 
            
                DelayTime=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; 
            
                Movable=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0; 
            
                Skillable=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0; 
            
                SelectPlayerable=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0; 
            
                ExitDescription = rawContents[20].Trim();
            
                PanelImg = rawContents[21].Trim();
            
                string[] ElixirHintStringArray = rawContents[22].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                ElixirHint = new int[ElixirHintStringArray.Length];
                for (int i=0;i<ElixirHintStringArray.Length;i++)
                {
                     int.TryParse(ElixirHintStringArray[i],out ElixirHint[i]);
                }
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}