25 lines
626 B
C#
25 lines
626 B
C#
using System.Collections.Generic;
|
|
using Cal.DataTable;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Bson.Serialization.Options;
|
|
|
|
namespace ET;
|
|
|
|
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)
|
|
{
|
|
|
|
}
|
|
}
|
|
public class CDKComponent:Entity
|
|
{
|
|
public int version;
|
|
[BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
|
|
public Dictionary<string,CDKReward[]> allCdkList = new();
|
|
|
|
public HashSet<string> gotCdkList = new();
|
|
} |