//------------------------------------------------------------------------------ // // 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 LevelDropConfig : Luban.BeanBase { public LevelDropConfig(ByteBuf _buf) { Id = _buf.ReadInt(); WhiteWeight = _buf.ReadFloat(); GreenWeight = _buf.ReadFloat(); BlueWeight = _buf.ReadFloat(); PurpleWeight = _buf.ReadFloat(); RedWeight = _buf.ReadFloat(); } public static LevelDropConfig DeserializeLevelDropConfig(ByteBuf _buf) { return new LevelDropConfig(_buf); } /// /// 关卡编号 /// public readonly int Id; /// /// 白色掉落率 /// public readonly float WhiteWeight; /// /// 绿色掉落率 /// public readonly float GreenWeight; /// /// 蓝色掉落率 /// public readonly float BlueWeight; /// /// 紫色掉落率 /// public readonly float PurpleWeight; /// /// 红色掉落率 /// public readonly float RedWeight; public const int __ID__ = 630655381; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "Id:" + Id + "," + "WhiteWeight:" + WhiteWeight + "," + "GreenWeight:" + GreenWeight + "," + "BlueWeight:" + BlueWeight + "," + "PurpleWeight:" + PurpleWeight + "," + "RedWeight:" + RedWeight + "," + "}"; } } }