NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/GenCode/Luban/DataTable/GlobalTrainLevelConfig.cs

76 lines
2.3 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
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]); }
}
/// <summary>
/// 火车关卡使用的火车id
/// </summary>
public int UseTrainId => _data.UseTrainId;
/// <summary>
/// 火车头出生位置
/// </summary>
public int TrainBornCellIndex => _data.TrainBornCellIndex;
/// <summary>
/// 火车达到位置-到达该位置后开始刹车
/// </summary>
public int TrainEndCellIndex => _data.TrainEndCellIndex;
/// <summary>
/// 角色开场淡出时间
/// </summary>
public float FadeOutTime => _data.FadeOutTime;
/// <summary>
/// 角色完全隐藏后的等待时间
/// </summary>
public float WaitMidTime => _data.WaitMidTime;
/// <summary>
/// 角色移动到火车上之后渐变出现时间
/// </summary>
public float FadeInTime => _data.FadeInTime;
/// <summary>
/// 角色完全准备就绪后,火车启动的延迟时间
/// </summary>
public float WaitStartMoveTime => _data.WaitStartMoveTime;
/// <summary>
/// 选关列表连线图标地址数组
/// </summary>
public System.Collections.Generic.List<string> LevelSelectLineIconPaths => _data.LevelSelectLineIconPaths;
/// <summary>
/// 选关列表背景相对选关列表的滑动比例
/// </summary>
public float LevelSelectBgSlideRatio => _data.LevelSelectBgSlideRatio;
public void ResolveRef(Tables tables)
{
_data.ResolveRef(tables);
}
}
}