59 lines
1.4 KiB
C#
59 lines
1.4 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;
|
|
|
|
|
|
namespace SepCore.Definition
|
|
{
|
|
/// <summary>
|
|
/// 警惕距离段
|
|
/// </summary>
|
|
public sealed partial class AlertDistanceBand : Luban.BeanBase
|
|
{
|
|
public AlertDistanceBand(ByteBuf _buf)
|
|
{
|
|
MaxDistanceMilli = _buf.ReadInt();
|
|
AlertPerSecondMilli = _buf.ReadInt();
|
|
}
|
|
|
|
public static AlertDistanceBand DeserializeAlertDistanceBand(ByteBuf _buf)
|
|
{
|
|
return new AlertDistanceBand(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 该段最大距离,单位千分之一Unity单位
|
|
/// </summary>
|
|
public readonly int MaxDistanceMilli;
|
|
/// <summary>
|
|
/// 每秒增加警惕值,满值1000
|
|
/// </summary>
|
|
public readonly int AlertPerSecondMilli;
|
|
|
|
public const int __ID__ = -1892026586;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
|
|
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "maxDistanceMilli:" + MaxDistanceMilli + ","
|
|
+ "alertPerSecondMilli:" + AlertPerSecondMilli + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|