//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class mapbornConfig : ConfigBase {
|
|
public int BornID;
|
public int MapID;
|
public int PosX;
|
public int PosY;
|
public int BornDiameter;
|
public int Nationality;
|
|
public override string getKey()
|
{
|
return BornID.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out BornID);
|
|
int.TryParse(contents[1],out MapID);
|
|
int.TryParse(contents[2],out PosX);
|
|
int.TryParse(contents[3],out PosY);
|
|
int.TryParse(contents[4],out BornDiameter);
|
|
int.TryParse(contents[5],out Nationality);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|