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

namespace NB.Game;

public class FishContainer : Entity
{
    /// <summary>
    /// 最大格子数量
    /// </summary>
    public int CellCountMax;

    /// <summary>
    /// 容器内的物品
    /// </summary>
    [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
    public Dictionary<long, Item> Fishes = new Dictionary<long, Item>();
}