using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.Text; namespace ET { [BsonIgnoreExtraElements] public class PlayerData : Entity,ISerializeToEntity { public int MainStoryRecordId { get; set; } /// /// key =total value =add /// public KeyValuePair hpAutoFullCapatial; public KeyValuePair mpAutoFullCapatial; [BsonRepresentation(BsonType.Double, AllowTruncation = true)] public float BattleExpSpeed { get; set; } = 1; public long battleExpSpeedLeastTime; [BsonRepresentation(BsonType.Double, AllowTruncation = true)] public float IdleExpSpeed { get; set; } = 1; public int trialLayer; public int trialAndBossLayer=01_01_01_01; public int trialCopyMostLayer = 01_01_01; public bool hasReceiveTrialCopyReword; public long mainstoryAITime; public long mainstoryVIPAITime; public long MarketLeastTime { get; set; } [BsonRepresentation(BsonType.Double, AllowTruncation = true)] public float MarketDiscount { get; set; } public int MarketPeriod { get; set; } public bool ForbidExp { get; set; } public bool IsBattleIdle { get; set; } public long LastOnlineTime { get; set; } public int OnlineTime { get; set; } public int OnlineRewardId { get; set; } public bool IsNew { get; set; } /// /// key =CurrPoint ,value = AllPoint /// public KeyValuePair CharacterPointKV { get; set; } /// /// key = currPoint, value = AllPoint /// public KeyValuePair SkillPointKV { get; set; } public int familyBossKeys = 2; public int questAnswerCard = 1; public int buyEnergyCount = 0; /// /// key = id,value =( curr,total ) /// [BsonDictionaryOptions(MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)] public Dictionary> dropDic = new Dictionary>(); /// /// 积分 /// public int personalScord; /// /// 挑战次数 /// public int personalPvpCount; public int currManulEquipMapLayer; public int manulEquipMakeCount = 4; public int bossEnergy = 10; public List> strengthCountList = new(); public int mapCoinCount = 10; public int epicManulMakeCount = 0; public int petEatCount = 10; public int petActive = 10; public int petActionIndexFlag = 00_00_00; public int travelVoucher = 50; public int lastGetSigninRewardDate =TimeHelper.GetTodayDay()-1; public int signInCountInMonth = 0; public List signInGetRewardCountInMonthList = new List(4); } }