少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-15 d5bf165ef28b530ed531aed097ad301278c5fcae
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
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Wednesday, November 07, 2018
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class ChatBubbleBoxConfig : ConfigBase {
 
        public int ID { get ; private set ; }
        public string Name { get ; private set; } 
        public int NeedLV { get ; private set ; }
        public string leftBubbleIcon { get ; private set; } 
        public string rightBubbleIcon { get ; private set; } 
        public int[] leftOffset;
        public int[] rightOffset;
        public string Icon { get ; private set; } 
        public int Jump { get ; private set ; }
        public string GainTip { get ; private set; } 
        public int[] color;
        public int top { get ; private set ; }
 
        public override string getKey()
        {
            return ID.ToString();
        }
 
        public override void Parse() {
            try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                Name = rawContents[1].Trim();
            
                NeedLV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; 
            
                leftBubbleIcon = rawContents[3].Trim();
            
                rightBubbleIcon = rawContents[4].Trim();
            
                string[] leftOffsetStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                leftOffset = new int[leftOffsetStringArray.Length];
                for (int i=0;i<leftOffsetStringArray.Length;i++)
                {
                     int.TryParse(leftOffsetStringArray[i],out leftOffset[i]);
                }
            
                string[] rightOffsetStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                rightOffset = new int[rightOffsetStringArray.Length];
                for (int i=0;i<rightOffsetStringArray.Length;i++)
                {
                     int.TryParse(rightOffsetStringArray[i],out rightOffset[i]);
                }
            
                Icon = rawContents[7].Trim();
            
                Jump=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
            
                GainTip = rawContents[9].Trim();
            
                string[] colorStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                color = new int[colorStringArray.Length];
                for (int i=0;i<colorStringArray.Length;i++)
                {
                     int.TryParse(colorStringArray[i],out color[i]);
                }
            
                top=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; 
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}