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
|
|
|
}
|