초기커밋
This commit is contained in:
75
ServerCommon/MetaData/ClaimData.cs
Normal file
75
ServerCommon/MetaData/ClaimData.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
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<int, ClaimRewardDetail> 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user