using Fantasy.Entitas;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.Options;

namespace NB.Game;

/// <summary>
/// 用户钱包
/// </summary>
public class PlayerWallet : Entity
{
    /// <summary>
    /// 余额
    /// </summary>
    public int Money;

    /// <summary>
    /// 金币
    /// </summary>
    public int Gold;

    /// <summary>
    /// 其他货币
    /// </summary>
    [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
    public Dictionary<int, int> Other = new();
}