초기커밋
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqDailyRewardBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private UgqDailyRewardLogInfo m_info;
|
||||
|
||||
public UgqDailyRewardBusinessLog(DateTime nextRefreshTime, ConcurrentDictionary<UgqGradeType, Int32> ugqDailyRewardCount)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new();
|
||||
m_info.next_refresh_time = nextRefreshTime;
|
||||
|
||||
foreach (var reward_count in ugqDailyRewardCount)
|
||||
{
|
||||
m_info.ugq_daily_reward_count.Add(reward_count.Key, reward_count.Value);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user