//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class DialogConfig : ConfigBase {
|
|
public int id;
|
public int npcId;
|
public string icon;
|
public string name;
|
public string content;
|
public int nextID;
|
public int TalkID;
|
|
public override string getKey()
|
{
|
return id.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out id);
|
|
int.TryParse(contents[1],out npcId);
|
|
icon = contents[2];
|
|
name = contents[3];
|
|
content = contents[4];
|
|
int.TryParse(contents[5],out nextID);
|
|
int.TryParse(contents[6],out TalkID);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|