//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_TeamLeaderAwardItem{ public const string TAB_FILE_DATA = "TeamLeaderAwardItem"; private const int _varCount = 3; public int GetId() { return Index; } 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_TeamLeaderAwardItem() { } public Tab_TeamLeaderAwardItem(string line) { var segments = line.Split('\t'); Index = int.Parse(segments[0]); AwardSubId = int.Parse(segments[2]); AwardCount = int.Parse(segments[3]); } public int Index { get; private set; } public int AwardSubId { get; private set; } public int AwardCount { get; private set; } } }