//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class mapnpcConfig : ConfigBase {
|
|
public int RefreshID;
|
public int NPCID;
|
public string NPCName;
|
public int NPCType;
|
public int NPCLv;
|
public int MapID;
|
public int Unknow1;
|
public int Unknow2;
|
public string HexPosNPCRefreshAreaChaseArea;
|
public int PerRefreshNum;
|
public int RefreshNum;
|
public int NPCFace;
|
public int Unknow3;
|
public int RefreshTime;
|
public int Unknow4;
|
public int Unknow5;
|
public int Unknow6;
|
public int Unknow7;
|
public int NPCRoute;
|
public int StayMinTime;
|
public int StayMaxTime;
|
public int RefreshMark;
|
public int Unknow9;
|
|
public override string getKey()
|
{
|
return RefreshID.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out RefreshID);
|
|
int.TryParse(contents[1],out NPCID);
|
|
NPCName = contents[2];
|
|
int.TryParse(contents[3],out NPCType);
|
|
int.TryParse(contents[4],out NPCLv);
|
|
int.TryParse(contents[5],out MapID);
|
|
int.TryParse(contents[6],out Unknow1);
|
|
int.TryParse(contents[7],out Unknow2);
|
|
HexPosNPCRefreshAreaChaseArea = contents[8];
|
|
int.TryParse(contents[9],out PerRefreshNum);
|
|
int.TryParse(contents[10],out RefreshNum);
|
|
int.TryParse(contents[11],out NPCFace);
|
|
int.TryParse(contents[12],out Unknow3);
|
|
int.TryParse(contents[13],out RefreshTime);
|
|
int.TryParse(contents[14],out Unknow4);
|
|
int.TryParse(contents[15],out Unknow5);
|
|
int.TryParse(contents[16],out Unknow6);
|
|
int.TryParse(contents[17],out Unknow7);
|
|
int.TryParse(contents[18],out NPCRoute);
|
|
int.TryParse(contents[19],out StayMinTime);
|
|
int.TryParse(contents[20],out StayMaxTime);
|
|
int.TryParse(contents[21],out RefreshMark);
|
|
int.TryParse(contents[22],out Unknow9);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|