//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_ValhallaGodGeneralStartProp{ public const string TAB_FILE_DATA = "ValhallaGodGeneralStartProp"; 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_ValhallaGodGeneralStartProp() { } public Tab_ValhallaGodGeneralStartProp(string line) { var segments = line.Split('\t'); Id = int.Parse(segments[0]); ModelId = int.Parse(segments[2]); StartLevel = int.Parse(segments[3]); ItemId = int.Parse(segments[4]); Value = int.Parse(segments[5]); StrId = int.Parse(segments[6]); PropID1 = float.Parse(segments[7]); } public int Id { get; private set; } public int ModelId { get; private set; } public int StartLevel { get; private set; } public int ItemId { get; private set; } public int Value { get; private set; } public int StrId { get; private set; } public float PropID1 { get; private set; } } }