41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
|
using MongoDB.Bson.Serialization.Attributes;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public class StatisticComponent:Entity
|
|||
|
{
|
|||
|
public enum StatisticType
|
|||
|
{
|
|||
|
Coin,
|
|||
|
Gem
|
|||
|
}
|
|||
|
public enum EnergyCostType
|
|||
|
{
|
|||
|
MainStory,
|
|||
|
IdleBattle,
|
|||
|
}
|
|||
|
public static StatisticComponent instance;
|
|||
|
/// <summary>
|
|||
|
/// 使用的地方
|
|||
|
/// </summary>
|
|||
|
[BsonDictionaryOptions(Representation = MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
|
|||
|
public Dictionary<long,Dictionary<string,int>> energyCostDic = new();
|
|||
|
/// <summary>
|
|||
|
/// 来源
|
|||
|
/// </summary>
|
|||
|
[BsonDictionaryOptions(Representation = MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
|
|||
|
public Dictionary<long,Dictionary<string,long>> coinDic = new();
|
|||
|
/// <summary>
|
|||
|
/// 来源
|
|||
|
/// </summary>
|
|||
|
[BsonDictionaryOptions(Representation = MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
|
|||
|
public Dictionary<long, Dictionary<string, long>> gemDic = new();
|
|||
|
|
|||
|
|
|||
|
public Dictionary<string, Dictionary<string, string>> statisticDic = new();
|
|||
|
|
|||
|
}
|
|||
|
}
|