//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class MapConfig : ConfigBase {
|
|
public int MapID;
|
public string Name;
|
public int LV;
|
public int MapFBType;
|
public int LocalReborn;
|
public int SkillReborn;
|
public int CanRide;
|
public int CanOutPet;
|
public int TeamLimit;
|
public Vector3[] BornPoints;
|
public int MainTaskID;
|
public string MapTaskText;
|
public int Camp;
|
public int AtkType;
|
|
public override string getKey()
|
{
|
return MapID.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out MapID);
|
|
Name = contents[1];
|
|
int.TryParse(contents[2],out LV);
|
|
int.TryParse(contents[3],out MapFBType);
|
|
int.TryParse(contents[4],out LocalReborn);
|
|
int.TryParse(contents[5],out SkillReborn);
|
|
int.TryParse(contents[6],out CanRide);
|
|
int.TryParse(contents[7],out CanOutPet);
|
|
int.TryParse(contents[8],out TeamLimit);
|
|
var BornPointsStringArray = contents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
BornPoints = new Vector3[BornPointsStringArray.Length];
|
for (int i=0;i<BornPointsStringArray.Length;i++)
|
{
|
BornPoints[i]=BornPointsStringArray[i].Vector3Parse();
|
}
|
|
int.TryParse(contents[10],out MainTaskID);
|
|
MapTaskText = contents[11];
|
|
int.TryParse(contents[12],out Camp);
|
|
int.TryParse(contents[13],out AtkType);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|