提交示例代码
This commit is contained in:
12
物品和背包的完整代码/Server/Entity/Gate/Components/BagComponent.cs
Normal file
12
物品和背包的完整代码/Server/Entity/Gate/Components/BagComponent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Fantasy.Entitas;
|
||||
using Fantasy.Entitas.Interface;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoDB.Bson.Serialization.Options;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class BagComponent : Entity, ISupportedDataBase
|
||||
{
|
||||
[BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
|
||||
public Dictionary<long, Item> Items = new Dictionary<long, Item>();
|
||||
}
|
||||
Reference in New Issue
Block a user