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