OvertakingLegend/Assets/Luban/Config/config/LevelConfig.cs

115 lines
3.2 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 Bright.Serialization;
using System.Collections.Generic;
namespace Config.config
{
public sealed partial class LevelConfig : Bright.Config.BeanBase
{
public LevelConfig(ByteBuf _buf)
{
Id = _buf.ReadString();
InitialTrack = _buf.ReadInt();
MaxTrack = _buf.ReadInt();
MinTrack = _buf.ReadInt();
MaxEmptyLane = _buf.ReadInt();
MinEmptyLane = _buf.ReadInt();
MaxLaneChangingCar = _buf.ReadInt();
MinLaneChangingCar = _buf.ReadInt();
FreePoint = _buf.ReadString();
End = _buf.ReadFloat();
Theme = _buf.ReadString();
PostInit();
}
public static LevelConfig DeserializeLevelConfig(ByteBuf _buf)
{
return new config.LevelConfig(_buf);
}
/// <summary>
/// id
/// </summary>
public string Id { get; private set; }
/// <summary>
/// 初始赛道数
/// </summary>
public int InitialTrack { get; private set; }
/// <summary>
/// 最大赛道数
/// </summary>
public int MaxTrack { get; private set; }
/// <summary>
/// 最小赛道数
/// </summary>
public int MinTrack { get; private set; }
/// <summary>
/// 最大空车道数
/// </summary>
public int MaxEmptyLane { get; private set; }
/// <summary>
/// 最小空车道数
/// </summary>
public int MinEmptyLane { get; private set; }
/// <summary>
/// 最大变道车数
/// </summary>
public int MaxLaneChangingCar { get; private set; }
/// <summary>
/// 最小变道车数
/// </summary>
public int MinLaneChangingCar { get; private set; }
/// <summary>
/// 进度卡点 车道总数 空车道 变道车辆 固定车辆
/// </summary>
public string FreePoint { get; private set; }
/// <summary>
/// 终点
/// </summary>
public float End { get; private set; }
/// <summary>
/// 主题
/// </summary>
public string Theme { get; private set; }
public const int __ID__ = 1724671770;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "InitialTrack:" + InitialTrack + ","
+ "MaxTrack:" + MaxTrack + ","
+ "MinTrack:" + MinTrack + ","
+ "MaxEmptyLane:" + MaxEmptyLane + ","
+ "MinEmptyLane:" + MinEmptyLane + ","
+ "MaxLaneChangingCar:" + MaxLaneChangingCar + ","
+ "MinLaneChangingCar:" + MinLaneChangingCar + ","
+ "FreePoint:" + FreePoint + ","
+ "End:" + End + ","
+ "Theme:" + Theme + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}