초기커밋
This commit is contained in:
49
GameServer/Contents/Quest/Log/QueatDailyCheckBusinessLog.cs
Normal file
49
GameServer/Contents/Quest/Log/QueatDailyCheckBusinessLog.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user