//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_GuildJurisdiction{ public const string TAB_FILE_DATA = "GuildJurisdiction"; private const int _varCount = 13; 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_GuildJurisdiction() { } public Tab_GuildJurisdiction(string line) { var segments = line.Split('\t'); Id = int.Parse(segments[0]); Authority[0] = int.Parse(segments[2]); Authority[1] = int.Parse(segments[3]); Authority[2] = int.Parse(segments[4]); Authority[3] = int.Parse(segments[5]); Authority[4] = int.Parse(segments[6]); Authority[5] = int.Parse(segments[7]); Authority[6] = int.Parse(segments[8]); Authority[7] = int.Parse(segments[9]); Authority[8] = int.Parse(segments[10]); Authority[9] = int.Parse(segments[11]); Authority[10] = int.Parse(segments[12]); Authority[11] = int.Parse(segments[13]); } public int Id { get; private set; } public readonly int[] Authority = new int[12]; public int getAuthorityCount() { return Authority.Length; } public int GetAuthoritybyIndex(int idx) { if(idx >= 0 && idx < Authority.Length) return Authority[idx]; return default(int); } } }