//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Saturday, January 06, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class CreateRoleConfig : ConfigBase {
|
|
public int job { get ; private set ; }
|
public string selectIcon { get ; private set; }
|
public string unselectIcon { get ; private set; }
|
public int skillid { get ; private set ; }
|
public string desc { get ; private set; }
|
|
public override string getKey()
|
{
|
return job.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
job=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
selectIcon = rawContents[1].Trim();
|
|
unselectIcon = rawContents[2].Trim();
|
|
skillid=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
desc = rawContents[4].Trim();
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|