//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Sunday, April 08, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class RoleStrongerConfig : ConfigBase {
|
|
public int id { get ; private set ; }
|
public int funcType { get ; private set ; }
|
public string Name { get ; private set; }
|
public int funcId { get ; private set ; }
|
public int LV { get ; private set ; }
|
public int[] conditions;
|
public int targetValue { get ; private set ; }
|
public int recommendFightPower { get ; private set ; }
|
public int strongerFightPower { get ; private set ; }
|
public string title { get ; private set; }
|
public string desc { get ; private set; }
|
public string Icon { get ; private set; }
|
public int OpenUI { get ; private set ; }
|
|
public override string getKey()
|
{
|
return id.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
funcType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
Name = rawContents[2].Trim();
|
|
funcId=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
LV=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
|
|
string[] conditionsStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
conditions = new int[conditionsStringArray.Length];
|
for (int i=0;i<conditionsStringArray.Length;i++)
|
{
|
int.TryParse(conditionsStringArray[i],out conditions[i]);
|
}
|
|
targetValue=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
|
|
recommendFightPower=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0;
|
|
strongerFightPower=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0;
|
|
title = rawContents[9].Trim();
|
|
desc = rawContents[10].Trim();
|
|
Icon = rawContents[11].Trim();
|
|
OpenUI=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|