98 lines
2.3 KiB
C#
98 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;
|
|
|
|
|
|
namespace SepCore.Definition
|
|
{
|
|
public sealed partial class StatConfig : Luban.BeanBase
|
|
{
|
|
public StatConfig(ByteBuf _buf)
|
|
{
|
|
StatType = (StatType)_buf.ReadInt();
|
|
Name = _buf.ReadString();
|
|
DefaultBaseValue = _buf.ReadFloat();
|
|
HasMin = _buf.ReadBool();
|
|
MinValue = _buf.ReadFloat();
|
|
HasMax = _buf.ReadBool();
|
|
MaxValue = _buf.ReadFloat();
|
|
IsPercentDisplay = _buf.ReadBool();
|
|
}
|
|
|
|
public static StatConfig DeserializeStatConfig(ByteBuf _buf)
|
|
{
|
|
return new StatConfig(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 属性类型
|
|
/// </summary>
|
|
public readonly StatType StatType;
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
public readonly string Name;
|
|
/// <summary>
|
|
/// 默认值
|
|
/// </summary>
|
|
public readonly float DefaultBaseValue;
|
|
/// <summary>
|
|
/// 是否有最小值
|
|
/// </summary>
|
|
public readonly bool HasMin;
|
|
/// <summary>
|
|
/// 最小值
|
|
/// </summary>
|
|
public readonly float MinValue;
|
|
/// <summary>
|
|
/// 是否有最大值
|
|
/// </summary>
|
|
public readonly bool HasMax;
|
|
/// <summary>
|
|
/// 最大值
|
|
/// </summary>
|
|
public readonly float MaxValue;
|
|
/// <summary>
|
|
/// UI 文本是否百分比
|
|
/// </summary>
|
|
public readonly bool IsPercentDisplay;
|
|
|
|
public const int __ID__ = 807092950;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "statType:" + StatType + ","
|
|
+ "name:" + Name + ","
|
|
+ "defaultBaseValue:" + DefaultBaseValue + ","
|
|
+ "hasMin:" + HasMin + ","
|
|
+ "minValue:" + MinValue + ","
|
|
+ "hasMax:" + HasMax + ","
|
|
+ "maxValue:" + MaxValue + ","
|
|
+ "isPercentDisplay:" + IsPercentDisplay + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|