//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class SkillFrameAnimationConfig : ConfigBase {
|
|
public int skillTypeId;
|
public int totalTime;
|
public string[] spriteKeys;
|
public string descriptionIcon;
|
public Vector3 sizeDelta;
|
public Vector3 position;
|
|
public override string getKey()
|
{
|
return skillTypeId.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out skillTypeId);
|
|
int.TryParse(contents[1],out totalTime);
|
|
spriteKeys = contents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
|
descriptionIcon = contents[3];
|
|
sizeDelta=contents[4].Vector3Parse();
|
|
position=contents[5].Vector3Parse();
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|