//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_SkillLearn{ public const string TAB_FILE_DATA = "SkillLearn"; private const int _varCount = 9; 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_SkillLearn() { } public Tab_SkillLearn(string line) { var segments = line.Split('\t'); Index = int.Parse(segments[0]); SkillId = int.Parse(segments[2]); Profession = int.Parse(segments[3]); Class = segments[4].Trim(); ShowPosX = int.Parse(segments[5]); ShowPosY = int.Parse(segments[6]); SkillType = segments[7].Trim(); LearnLv = int.Parse(segments[8]); SkillBarIndex = int.Parse(segments[9]); } public int Index { get; private set; } public int SkillId { get; private set; } public int Profession { get; private set; } public string Class { get; private set; } public int ShowPosX { get; private set; } public int ShowPosY { get; private set; } public string SkillType { get; private set; } public int LearnLv { get; private set; } public int SkillBarIndex { get; private set; } } }