//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Thursday, May 03, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class NPCDialogueConfig : ConfigBase {
|
|
public int ID { get ; private set ; }
|
public int NPCID { get ; private set ; }
|
public int DataMapId { get ; private set ; }
|
public int Interval { get ; private set ; }
|
public int NextTime { get ; private set ; }
|
public string[] Dialogues;
|
|
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;
|
|
DataMapId=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
|
Interval=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
NextTime=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
|
|
Dialogues = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|