//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_LevelCombatTipItem{ public const string TAB_FILE_DATA = "LevelCombatTipItem"; 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_LevelCombatTipItem() { } public Tab_LevelCombatTipItem(string line) { var segments = line.Split('\t'); Id = int.Parse(segments[0]); Class = int.Parse(segments[2]); Sort = int.Parse(segments[3]); Name = segments[4].Trim(); Tips = segments[5].Trim(); Icon = segments[6].Trim(); BtnGoName = segments[7].Trim(); BtnGoFunc = segments[8].Trim(); BtnGoParam = segments[9].Trim(); ShowType = segments[10].Trim(); ShowParam = segments[11].Trim(); BtnDisableText = segments[12].Trim(); } public int Id { get; private set; } public int Class { get; private set; } public int Sort { get; private set; } public string Name { get; private set; } public string Tips { get; private set; } public string Icon { get; private set; } public string BtnGoName { get; private set; } public string BtnGoFunc { get; private set; } public string BtnGoParam { get; private set; } public string ShowType { get; private set; } public string ShowParam { get; private set; } public string BtnDisableText { get; private set; } } }