//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class MapEventPointConfig : ConfigBase {
|
|
public int Key;
|
public int MapID;
|
public int NPCID;
|
public int IsShowInfo;
|
public int ShowInMipMap;
|
public int Colour;
|
public int LowLV;
|
public int HighestLV;
|
public int Defense;
|
public string Drop1;
|
public string Drop2;
|
public string EXP;
|
|
public override string getKey()
|
{
|
return Key.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out Key);
|
|
int.TryParse(contents[1],out MapID);
|
|
int.TryParse(contents[2],out NPCID);
|
|
int.TryParse(contents[3],out IsShowInfo);
|
|
int.TryParse(contents[4],out ShowInMipMap);
|
|
int.TryParse(contents[5],out Colour);
|
|
int.TryParse(contents[6],out LowLV);
|
|
int.TryParse(contents[7],out HighestLV);
|
|
int.TryParse(contents[8],out Defense);
|
|
Drop1 = contents[9];
|
|
Drop2 = contents[10];
|
|
EXP = contents[11];
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|