//-------------------------------------------------------- // [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); } } } }