//------------------------------------------------------------------------------
//
// 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 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);
}
///
/// id
///
public string Id { get; private set; }
///
/// 初始赛道数
///
public int InitialTrack { get; private set; }
///
/// 最大赛道数
///
public int MaxTrack { get; private set; }
///
/// 最小赛道数
///
public int MinTrack { get; private set; }
///
/// 最大空车道数
///
public int MaxEmptyLane { get; private set; }
///
/// 最小空车道数
///
public int MinEmptyLane { get; private set; }
///
/// 最大变道车数
///
public int MaxLaneChangingCar { get; private set; }
///
/// 最小变道车数
///
public int MinLaneChangingCar { get; private set; }
///
/// 进度卡点 车道总数 空车道 变道车辆 固定车辆
///
public string FreePoint { get; private set; }
///
/// 终点
///
public float End { get; private set; }
///
/// 主题
///
public string Theme { get; private set; }
public const int __ID__ = 1724671770;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func 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();
}
}