15 lines
360 B
C#

using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
namespace ET.Server
{
[ComponentOf(typeof(Player))]
public class BagComponent : Entity, IAwake, IDestroy
{
[BsonElement]
public long NextItemIndex = 1;
[BsonElement]
public Dictionary<long, EntityRef<ItemUnit>> ItemMap = new();
}
}