84 lines
2.0 KiB
C#
84 lines
2.0 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 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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 关卡编号
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 白色掉落率
|
|
/// </summary>
|
|
public readonly float WhiteWeight;
|
|
/// <summary>
|
|
/// 绿色掉落率
|
|
/// </summary>
|
|
public readonly float GreenWeight;
|
|
/// <summary>
|
|
/// 蓝色掉落率
|
|
/// </summary>
|
|
public readonly float BlueWeight;
|
|
/// <summary>
|
|
/// 紫色掉落率
|
|
/// </summary>
|
|
public readonly float PurpleWeight;
|
|
/// <summary>
|
|
/// 红色掉落率
|
|
/// </summary>
|
|
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 + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|