//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Friday, June 29, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class DialogConfig : ConfigBase {
|
|
public int id { get ; private set ; }
|
public int npcId { get ; private set ; }
|
public string icon { get ; private set; }
|
public string name { get ; private set; }
|
public string content { get ; private set; }
|
public int nextID { get ; private set ; }
|
public int TalkID { get ; private set ; }
|
|
public override string getKey()
|
{
|
return id.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
npcId=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
icon = rawContents[2].Trim();
|
|
name = rawContents[3].Trim();
|
|
content = rawContents[4].Trim();
|
|
nextID=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
|
|
TalkID=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|