42 lines
940 B
C#
42 lines
940 B
C#
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);
|
|
}
|
|
} |