//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Saturday, January 06, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class mapAreaConfig : ConfigBase {
|
|
public int AreaID { get ; private set ; }
|
public int MapID { get ; private set ; }
|
public int StartPosX { get ; private set ; }
|
public int StartPosY { get ; private set ; }
|
public int EndPosX { get ; private set ; }
|
public int EndPosY { get ; private set ; }
|
public int AreaName { get ; private set ; }
|
|
public override string getKey()
|
{
|
return AreaID.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
AreaID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
MapID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
StartPosX=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
|
StartPosY=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
EndPosX=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
|
|
EndPosY=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
|
|
AreaName=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|