using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Google.Protobuf.WellKnownTypes; using ServerCore; using ServerBase; namespace ServerCommon { public class ClaimMetaData { public EEventType EventType; public MetaAssets.ClaimType ClaimType; public int ClaimId = 0; public DateTime StartTime = new(); public DateTime EndTime = new(); public SortedDictionary DetailInfo = new(); //public EventSpecInfo SpecInfo = new EventSpecInfo(); public ClaimMetaData(EEventType eventType, int claimId, MetaAssets.ClaimType claimType) { EventType = eventType; ClaimId = claimId; ClaimType = claimType; //SpecInfo.Conditions = new(); //EventInvokerCondition eventInvokerCondition = new EventInvokerCondition(); //eventInvokerCondition.invokerType = EInvokerType.TIMER; //eventInvokerCondition.invokerAction = EInvokerActionType.CHECK; //eventInvokerCondition.conditionSequence = 1; //eventInvokerCondition.paramKeyValues = new(); //EventParamKeyValue eventParamKeyValue = new(EInvokerParamType.ElapsedTime, EInvokerParamType.ElapsedTime.ToString()); //eventInvokerCondition.paramKeyValues.Add(eventParamKeyValue); //SpecInfo.Conditions.Add(eventInvokerCondition); } public int GetMetaId() { return ClaimId; } public bool SetMetaId(int value) { ClaimId = value; return true; } public string toBasicString() => $"{this.getTypeName()}: {ClaimId}-{ClaimType}-{EventType}"; } public class ClaimRewardDetail { public int Idx; public int RewardGroupId; public long CoolTime; public bool isSpecialReward; } }