//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_FunctionOpen{ public const string TAB_FILE_DATA = "FunctionOpen"; private const int _varCount = 10; 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_FunctionOpen() { } public Tab_FunctionOpen(string line) { var segments = line.Split('\t'); Id = int.Parse(segments[0]); ShowGUIDId = int.Parse(segments[2]); ShowLevel = int.Parse(segments[3]); OpenLevel = int.Parse(segments[4]); OpenVipLv = int.Parse(segments[5]); OpenServerDay = int.Parse(segments[6]); ShowModelid = int.Parse(segments[7]); ShowImageBundlePath = segments[8].Trim(); StrdicId = int.Parse(segments[9]); Name = segments[10].Trim(); } public int Id { get; private set; } public int ShowGUIDId { get; private set; } public int ShowLevel { get; private set; } public int OpenLevel { get; private set; } public int OpenVipLv { get; private set; } public int OpenServerDay { get; private set; } public int ShowModelid { get; private set; } public string ShowImageBundlePath { get; private set; } public int StrdicId { get; private set; } public string Name { get; private set; } } }