//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_TestingCopyOnceAward{ public const string TAB_FILE_DATA = "TestingCopyOnceAward"; private const int _varCount = 7; 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_TestingCopyOnceAward() { } public Tab_TestingCopyOnceAward(string line) { var segments = line.Split('\t'); Id = int.Parse(segments[0]); AwardName = segments[2].Trim(); AwardType = segments[3].Trim(); Award = segments[4].Trim(); IconPath = segments[5].Trim(); IconBGPath = segments[6].Trim(); TopBGPath = segments[7].Trim(); } public int Id { get; private set; } public string AwardName { get; private set; } public string AwardType { get; private set; } public string Award { get; private set; } public string IconPath { get; private set; } public string IconBGPath { get; private set; } public string TopBGPath { get; private set; } } }