Files
caliverse_server/GameServer/Contents/Quest/Log/QueatDailyCheckBusinessLog.cs
2025-05-01 07:20:41 +09:00

49 lines
1.0 KiB
C#

using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
using MetaAssets;
namespace GameServer;
public class QueatDailyCheckBusinessLog : ILogInvokerEx
{
private List<QuestDailyCheckLogInfo> m_info;
public QueatDailyCheckBusinessLog(Dictionary<OncePeriodRangeType, QuestPeriodRepeatInfo> infos) : base(LogDomainType.QuestMain)
{
m_info = new();
foreach (var info in infos)
{
QuestDailyCheckLogInfo log_info = new();
log_info.period_type = info.Key;
foreach (var sended_quest in info.Value.m_sended_quest)
{
log_info.sended_quest_check.TryAdd(sended_quest.Key, sended_quest.Value);
}
}
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
foreach(var info in m_info)
{
body.append(info);
}
}
}