少年修仙传客户端代码仓库
client_Zxw
2019-01-24 4bcda00aa3cb3678f5b42ab86d8624f32a1ec24c
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
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Wednesday, January 23, 2019
//--------------------------------------------------------
 
using UnityEngine;
using System;
 
namespace TableConfig {
 
    
    public partial class SkillFrameAnimationConfig : ConfigBase {
 
        public int skillTypeId { get ; private set ; }
        public int totalTime { get ; private set ; }
        public string[] spriteKeys;
        public string descriptionIcon { get ; private set; } 
        public Vector3 sizeDelta { get ; private set; } 
        public Vector3 position { get ; private set; } 
 
        public override string getKey()
        {
            return skillTypeId.ToString();
        }
 
        public override void Parse() {
            try
            {
                skillTypeId=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                totalTime=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; 
            
                spriteKeys = rawContents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            
                descriptionIcon = rawContents[3].Trim();
            
                sizeDelta=rawContents[4].Vector3Parse();
            
                position=rawContents[5].Vector3Parse();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    
    }
 
}