//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_CameraRock{ public const string TAB_FILE_DATA = "CameraRock"; private const int _varCount = 12; public int GetId() { return RockID; } 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_CameraRock() { } public Tab_CameraRock(string line) { var segments = line.Split('\t'); RockID = int.Parse(segments[0]); IsContinueDie = int.Parse(segments[2]) > 0; NeedRockTime = float.Parse(segments[3]); DelayTime = float.Parse(segments[4]); PosXAnimCurveId = int.Parse(segments[5]); PosYAnimCurveId = int.Parse(segments[6]); PosZAnimCurveId = int.Parse(segments[7]); RXAnimCurveId = int.Parse(segments[8]); RYAnimCurveId = int.Parse(segments[9]); RZAnimCurveId = int.Parse(segments[10]); IsAnimation = int.Parse(segments[11]); AnimationName = segments[12].Trim(); } public int RockID { get; private set; } public bool IsContinueDie { get; private set; } public float NeedRockTime { get; private set; } public float DelayTime { get; private set; } public int PosXAnimCurveId { get; private set; } public int PosYAnimCurveId { get; private set; } public int PosZAnimCurveId { get; private set; } public int RXAnimCurveId { get; private set; } public int RYAnimCurveId { get; private set; } public int RZAnimCurveId { get; private set; } public int IsAnimation { get; private set; } public string AnimationName { get; private set; } } }