147 lines
4.1 KiB
C#
147 lines
4.1 KiB
C#
//This code create by CodeEngine ,don't modify
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections;
|
|
using Module.Log;
|
|
|
|
namespace GCGame.Table
|
|
{
|
|
|
|
public class Tab_ActivityBase{
|
|
|
|
public const string TAB_FILE_DATA = "ActivityBase";
|
|
private const int _varCount = 36;
|
|
|
|
public int GetId()
|
|
{
|
|
return Id;
|
|
}
|
|
|
|
public static bool Validate(string line)
|
|
{
|
|
var segments = 0;
|
|
foreach (char c in line)
|
|
if (c == '\t')
|
|
segments++;
|
|
// Note: skip the 2nd column as it's the description;
|
|
var result = segments == _varCount;
|
|
if (!result)
|
|
LogModule.ErrorLog(string.Format("Load {0} error as CodeSize:{1} not Equal DataSize:{2}", TAB_FILE_DATA, _varCount, segments));
|
|
return result;
|
|
}
|
|
|
|
public Tab_ActivityBase()
|
|
{
|
|
}
|
|
|
|
public Tab_ActivityBase(string line)
|
|
{
|
|
var segments = line.Split('\t');
|
|
Id = int.Parse(segments[0]);
|
|
ActivityName = segments[2].Trim();
|
|
IsShow = int.Parse(segments[3]);
|
|
Icon = segments[4].Trim();
|
|
BeginSoonTipID = int.Parse(segments[5]);
|
|
ActivityIcon = segments[6].Trim();
|
|
StartTipImage = segments[7].Trim();
|
|
StartTipNeedGuild = int.Parse(segments[8]);
|
|
ActivityType = int.Parse(segments[9]);
|
|
Desc = segments[10].Trim();
|
|
ShowWeekDesc = int.Parse(segments[11]);
|
|
Promote = int.Parse(segments[12]);
|
|
Format = int.Parse(segments[13]);
|
|
Level = int.Parse(segments[14]);
|
|
Recurrent = segments[15].Trim();
|
|
Time[0] = segments[16].Trim();
|
|
Time[1] = segments[17].Trim();
|
|
Time[2] = segments[18].Trim();
|
|
Time[3] = segments[19].Trim();
|
|
Time[4] = segments[20].Trim();
|
|
Time[5] = segments[21].Trim();
|
|
Time[6] = segments[22].Trim();
|
|
Time[7] = segments[23].Trim();
|
|
Reward = segments[24].Trim();
|
|
ParameterType = int.Parse(segments[25]);
|
|
Parameter = segments[26].Trim();
|
|
PushType = int.Parse(segments[27]);
|
|
MessageId = int.Parse(segments[28]);
|
|
ActityLimitTimes = int.Parse(segments[29]);
|
|
ActivityServerType = int.Parse(segments[30]);
|
|
MissionBaseType = int.Parse(segments[31]);
|
|
HideOnCompleted = int.Parse(segments[32]);
|
|
OpenTimeDesc = segments[33].Trim();
|
|
IsShowExpIocn = int.Parse(segments[34]);
|
|
IsOpenWhenWaiting = int.Parse(segments[35]);
|
|
NeedOpenServerDay = int.Parse(segments[36]);
|
|
|
|
}
|
|
|
|
public int Id { get; private set; }
|
|
|
|
public string ActivityName { get; private set; }
|
|
|
|
public int IsShow { get; private set; }
|
|
|
|
public string Icon { get; private set; }
|
|
|
|
public int BeginSoonTipID { get; private set; }
|
|
|
|
public string ActivityIcon { get; private set; }
|
|
|
|
public string StartTipImage { get; private set; }
|
|
|
|
public int StartTipNeedGuild { get; private set; }
|
|
|
|
public int ActivityType { get; private set; }
|
|
|
|
public string Desc { get; private set; }
|
|
|
|
public int ShowWeekDesc { get; private set; }
|
|
|
|
public int Promote { get; private set; }
|
|
|
|
public int Format { get; private set; }
|
|
|
|
public int Level { get; private set; }
|
|
|
|
public string Recurrent { get; private set; }
|
|
|
|
public readonly string[] Time = new string[8];
|
|
public int getTimeCount() { return Time.Length; }
|
|
public string GetTimebyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < Time.Length)
|
|
return Time[idx];
|
|
return default(string);
|
|
}
|
|
|
|
public string Reward { get; private set; }
|
|
|
|
public int ParameterType { get; private set; }
|
|
|
|
public string Parameter { get; private set; }
|
|
|
|
public int PushType { get; private set; }
|
|
|
|
public int MessageId { get; private set; }
|
|
|
|
public int ActityLimitTimes { get; private set; }
|
|
|
|
public int ActivityServerType { get; private set; }
|
|
|
|
public int MissionBaseType { get; private set; }
|
|
|
|
public int HideOnCompleted { get; private set; }
|
|
|
|
public string OpenTimeDesc { get; private set; }
|
|
|
|
public int IsShowExpIocn { get; private set; }
|
|
|
|
public int IsOpenWhenWaiting { get; private set; }
|
|
|
|
public int NeedOpenServerDay { get; private set; }
|
|
|
|
|
|
}
|
|
} |