//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class TaskListConfig : ConfigBase {
|
|
public int TaskID;
|
public int ChapterID;
|
public string ChapterName;
|
public string TaskName;
|
public string TaskDescribe;
|
public string TaskRewards;
|
public string TaskTarget;
|
public int[] CollectNPC;
|
public int FabaoID;
|
|
public override string getKey()
|
{
|
return TaskID.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out TaskID);
|
|
int.TryParse(contents[1],out ChapterID);
|
|
ChapterName = contents[2];
|
|
TaskName = contents[3];
|
|
TaskDescribe = contents[4];
|
|
TaskRewards = contents[5];
|
|
TaskTarget = contents[6];
|
|
var CollectNPCStringArray = contents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
CollectNPC = new int[CollectNPCStringArray.Length];
|
for (int i=0;i<CollectNPCStringArray.Length;i++)
|
{
|
int.TryParse(CollectNPCStringArray[i],out CollectNPC[i]);
|
}
|
|
int.TryParse(contents[8],out FabaoID);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|