//------------------------------------------------------------------------------ // // 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 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); } /// /// 属性类型 /// public readonly StatType StatType; /// /// 名称 /// public readonly string Name; /// /// 默认值 /// public readonly float DefaultBaseValue; /// /// 是否有最小值 /// public readonly bool HasMin; /// /// 最小值 /// public readonly float MinValue; /// /// 是否有最大值 /// public readonly bool HasMax; /// /// 最大值 /// public readonly float MaxValue; /// /// UI 文本是否百分比 /// 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 + "," + "}"; } } }