82 lines
2.0 KiB
C#
82 lines
2.0 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_MissionLimit{
|
|
|
|
public const string TAB_FILE_DATA = "MissionLimit";
|
|
private const int _varCount = 12;
|
|
|
|
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_MissionLimit()
|
|
{
|
|
}
|
|
|
|
public Tab_MissionLimit(string line)
|
|
{
|
|
var segments = line.Split('\t');
|
|
Id = int.Parse(segments[0]);
|
|
LowLevel = int.Parse(segments[2]);
|
|
PreMission = int.Parse(segments[3]);
|
|
ItemNeed = int.Parse(segments[4]);
|
|
TeamNeed = int.Parse(segments[5]);
|
|
InGuild = int.Parse(segments[6]);
|
|
IsLoop = int.Parse(segments[7]);
|
|
TeamNeedPeople = int.Parse(segments[8]);
|
|
ClassNeed = int.Parse(segments[9]);
|
|
OneTurnCount = int.Parse(segments[10]);
|
|
CanCompleteTurns = int.Parse(segments[11]);
|
|
IsShow = int.Parse(segments[12]);
|
|
|
|
}
|
|
|
|
public int Id { get; private set; }
|
|
|
|
public int LowLevel { get; private set; }
|
|
|
|
public int PreMission { get; private set; }
|
|
|
|
public int ItemNeed { get; private set; }
|
|
|
|
public int TeamNeed { get; private set; }
|
|
|
|
public int InGuild { get; private set; }
|
|
|
|
public int IsLoop { get; private set; }
|
|
|
|
public int TeamNeedPeople { get; private set; }
|
|
|
|
public int ClassNeed { get; private set; }
|
|
|
|
public int OneTurnCount { get; private set; }
|
|
|
|
public int CanCompleteTurns { get; private set; }
|
|
|
|
public int IsShow { get; private set; }
|
|
|
|
|
|
}
|
|
} |