- 引入 UnityGameFramework
- 使用 Luban 替代原来的 UGF 的数据表
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 LootGenerationConfig : Luban.BeanBase
|
||||
{
|
||||
public LootGenerationConfig(ByteBuf _buf)
|
||||
{
|
||||
Difficulty = (DifficultyTier)_buf.ReadInt();
|
||||
MinCount = _buf.ReadInt();
|
||||
MaxCount = _buf.ReadInt();
|
||||
WhiteWeight = _buf.ReadInt();
|
||||
GreenWeight = _buf.ReadInt();
|
||||
BlueWeight = _buf.ReadInt();
|
||||
GoldWeight = _buf.ReadInt();
|
||||
RedWeight = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static LootGenerationConfig DeserializeLootGenerationConfig(ByteBuf _buf)
|
||||
{
|
||||
return new LootGenerationConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 难度档位
|
||||
/// </summary>
|
||||
public readonly DifficultyTier Difficulty;
|
||||
/// <summary>
|
||||
/// 最少生成数量
|
||||
/// </summary>
|
||||
public readonly int MinCount;
|
||||
/// <summary>
|
||||
/// 最多生成数量
|
||||
/// </summary>
|
||||
public readonly int MaxCount;
|
||||
/// <summary>
|
||||
/// 白色权重
|
||||
/// </summary>
|
||||
public readonly int WhiteWeight;
|
||||
/// <summary>
|
||||
/// 绿色权重
|
||||
/// </summary>
|
||||
public readonly int GreenWeight;
|
||||
/// <summary>
|
||||
/// 蓝色权重
|
||||
/// </summary>
|
||||
public readonly int BlueWeight;
|
||||
/// <summary>
|
||||
/// 金色权重
|
||||
/// </summary>
|
||||
public readonly int GoldWeight;
|
||||
/// <summary>
|
||||
/// 红色权重
|
||||
/// </summary>
|
||||
public readonly int RedWeight;
|
||||
|
||||
public const int __ID__ = 2054804834;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "difficulty:" + Difficulty + ","
|
||||
+ "minCount:" + MinCount + ","
|
||||
+ "maxCount:" + MaxCount + ","
|
||||
+ "whiteWeight:" + WhiteWeight + ","
|
||||
+ "greenWeight:" + GreenWeight + ","
|
||||
+ "blueWeight:" + BlueWeight + ","
|
||||
+ "goldWeight:" + GoldWeight + ","
|
||||
+ "redWeight:" + RedWeight + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user