zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Game/Entity/User/CDKComponent.cs

25 lines
626 B
C#
Raw Normal View History

2023-09-07 00:06:37 +08:00
using System.Collections.Generic;
2023-09-10 20:52:26 +08:00
using Cal.DataTable;
2023-09-07 00:06:37 +08:00
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.Options;
namespace ET;
2023-09-10 20:52:26 +08:00
public class CDKReward(int id, int count)
{
public int ItemId { get; set; } = id;
public int Count { get; set; } = count;
public CDKReward(CdkConfig.Reward reward):this(reward._Id,reward.Count)
{
}
}
2023-09-07 00:06:37 +08:00
public class CDKComponent:Entity
{
public int version;
[BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
2023-09-10 20:52:26 +08:00
public Dictionary<string,CDKReward[]> allCdkList = new();
2023-09-07 00:06:37 +08:00
2023-09-10 20:52:26 +08:00
public HashSet<string> gotCdkList = new();
2023-09-07 00:06:37 +08:00
}