35 lines
731 B
C#
35 lines
731 B
C#
using System.Collections.Generic;
|
|
|
|
namespace ET.Server
|
|
{
|
|
public enum GachaDrawType
|
|
{
|
|
Single = 1,
|
|
Multi10 = 2
|
|
}
|
|
|
|
[EnableClass]
|
|
public sealed class GachaPoolWeight
|
|
{
|
|
public int ItemId;
|
|
public long Count;
|
|
public int Weight;
|
|
public int Rare;
|
|
}
|
|
|
|
[EnableClass]
|
|
public sealed class GachaPoolState
|
|
{
|
|
public int TotalCount;
|
|
public int GuaranteeRemain;
|
|
public long LastDrawMs;
|
|
}
|
|
|
|
[ComponentOf(typeof(Player))]
|
|
public class GachaComponent : Entity, IAwake, IDestroy
|
|
{
|
|
// 2.0.3.2: 持久化字段(按现有 BSON 序列化路径)
|
|
public Dictionary<int, GachaPoolState> PoolStats = new();
|
|
}
|
|
}
|