//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Luban; using SimpleJSON; namespace cfg { public partial class GlobalTrainLevelConfig { private readonly DataGlobalTrainLevelConfig _data; public DataGlobalTrainLevelConfig Data => _data; public GlobalTrainLevelConfig(JSONNode _buf) { int n = _buf.Count; if (n != 1) throw new SerializationException("table mode=one, but size != 1"); { if(!_buf[0].IsObject) { throw new SerializationException(); } _data = global::cfg.DataGlobalTrainLevelConfig.DeserializeDataGlobalTrainLevelConfig(_buf[0]); } } /// /// 火车关卡使用的火车id /// public int UseTrainId => _data.UseTrainId; /// /// 火车头出生位置 /// public int TrainBornCellIndex => _data.TrainBornCellIndex; /// /// 火车达到位置-到达该位置后开始刹车 /// public int TrainEndCellIndex => _data.TrainEndCellIndex; /// /// 角色开场淡出时间 /// public float FadeOutTime => _data.FadeOutTime; /// /// 角色完全隐藏后的等待时间 /// public float WaitMidTime => _data.WaitMidTime; /// /// 角色移动到火车上之后渐变出现时间 /// public float FadeInTime => _data.FadeInTime; /// /// 角色完全准备就绪后,火车启动的延迟时间 /// public float WaitStartMoveTime => _data.WaitStartMoveTime; /// /// 选关列表连线图标地址数组 /// public System.Collections.Generic.List LevelSelectLineIconPaths => _data.LevelSelectLineIconPaths; public void ResolveRef(Tables tables) { _data.ResolveRef(tables); } } }