//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Sunday, April 08, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class MapEventPointConfig : ConfigBase {
|
|
public int Key { get ; private set ; }
|
public int MapID { get ; private set ; }
|
public int NPCID { get ; private set ; }
|
public int IsShowInfo { get ; private set ; }
|
public int ShowInMipMap { get ; private set ; }
|
public int Colour { get ; private set ; }
|
public int LowLV { get ; private set ; }
|
public int HighestLV { get ; private set ; }
|
public int Defense { get ; private set ; }
|
public string Drop1 { get ; private set; }
|
public string Drop2 { get ; private set; }
|
public string EXP { get ; private set; }
|
|
public override string getKey()
|
{
|
return Key.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
Key=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
MapID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
NPCID=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
|
IsShowInfo=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
ShowInMipMap=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
|
|
Colour=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
|
|
LowLV=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
|
|
HighestLV=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0;
|
|
Defense=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0;
|
|
Drop1 = rawContents[9].Trim();
|
|
Drop2 = rawContents[10].Trim();
|
|
EXP = rawContents[11].Trim();
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|