//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Thursday, March 29, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class SuitEffectConfig : ConfigBase {
|
|
public int ID { get ; private set ; }
|
public string[] bindbones;
|
public int[] effectIds;
|
|
public override string getKey()
|
{
|
return ID.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
bindbones = rawContents[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
|
string[] effectIdsStringArray = rawContents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
effectIds = new int[effectIdsStringArray.Length];
|
for (int i=0;i<effectIdsStringArray.Length;i++)
|
{
|
int.TryParse(effectIdsStringArray[i],out effectIds[i]);
|
}
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|