//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Saturday, January 06, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class DailyQuestOpenTimeConfig : ConfigBase {
|
|
public int ID { get ; private set ; }
|
public string ActionName { get ; private set; }
|
public int OpenServerDay { get ; private set ; }
|
public string OpenTime { get ; private set; }
|
public int Duration { get ; private set ; }
|
public int DayTimes { get ; private set ; }
|
public int DayReKind { get ; private set ; }
|
public int WeekTimes { get ; private set ; }
|
public int WeekReKind { 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;
|
|
ActionName = rawContents[1].Trim();
|
|
OpenServerDay=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
|
OpenTime = rawContents[3].Trim();
|
|
Duration=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
|
|
DayTimes=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
|
|
DayReKind=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
|
|
WeekTimes=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0;
|
|
WeekReKind=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0;
|
|
OpenUI=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|