초기커밋
This commit is contained in:
32
GameServer/Contents/QuestUGQ/Log/QuestMailBusinessLog.cs
Normal file
32
GameServer/Contents/QuestUGQ/Log/QuestMailBusinessLog.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class QuestMailBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestMailLogInfo m_info;
|
||||
public QuestMailBusinessLog(QuestMailAttribute attribute, QuestMailLogType type)
|
||||
: base(LogDomainType.QuestMail)
|
||||
{
|
||||
m_info = new QuestMailLogInfo(this, attribute, type);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class QuestTaskUpdateBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestTaskUpdateLogInfo m_info;
|
||||
public QuestTaskUpdateBusinessLog(QuestTaskUpdateHandler questTaskUpdateDataRef)
|
||||
: base(LogDomainType.QuestMain)
|
||||
{
|
||||
ArgumentNullReferenceCheckHelper.throwIfNull(questTaskUpdateDataRef.m_quest, () => $"questTaskUpdateDataRef.m_quest is null !!!");
|
||||
|
||||
var quest_attribute = questTaskUpdateDataRef.m_quest.getEntityAttribute<QuestAttribute>();
|
||||
NullReferenceCheckHelper.throwIfNull(quest_attribute, () => $"quest_attribute is null !!!");
|
||||
|
||||
List<ItemBase> delete_items = new();
|
||||
|
||||
foreach (var item in questTaskUpdateDataRef.m_deleted_items)
|
||||
{
|
||||
delete_items.Add(item as ItemBase);
|
||||
}
|
||||
m_info = new QuestTaskUpdateLogInfo(this,
|
||||
questTaskUpdateDataRef.m_quest_id,
|
||||
questTaskUpdateDataRef.m_quest_revision,
|
||||
quest_attribute.CurrentTaskNum,
|
||||
quest_attribute.ActiveEvents,
|
||||
questTaskUpdateDataRef.m_rewards,
|
||||
delete_items
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
|
||||
}
|
||||
34
GameServer/Contents/QuestUGQ/Log/UgqAbortBusinessLog.cs
Normal file
34
GameServer/Contents/QuestUGQ/Log/UgqAbortBusinessLog.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqAbortBusinessLog : ILogInvokerEx
|
||||
{
|
||||
UgqAbortLogInfo m_info;
|
||||
|
||||
public UgqAbortBusinessLog(UInt32 questId, UInt32 questRevision, UgqAbortType abortType)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new UgqAbortLogInfo(this, questId, questRevision, abortType);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
|
||||
}
|
||||
33
GameServer/Contents/QuestUGQ/Log/UgqAssignBusinessLog.cs
Normal file
33
GameServer/Contents/QuestUGQ/Log/UgqAssignBusinessLog.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqAssignBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqAssignBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqDeregisterBookmarkBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqDeregisterBookmarkBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
|
||||
public class UgqDeregisterLikeBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqDeregisterLikeBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
}
|
||||
34
GameServer/Contents/QuestUGQ/Log/UgqReAssignBusinessLog.cs
Normal file
34
GameServer/Contents/QuestUGQ/Log/UgqReAssignBusinessLog.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqReAssignBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqReAssignBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqRegisterBookmarkBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqRegisterBookmarkBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqRegisterLikeBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqRegisterLikeBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
}
|
||||
33
GameServer/Contents/QuestUGQ/Log/UgqReportBusinessLog.cs
Normal file
33
GameServer/Contents/QuestUGQ/Log/UgqReportBusinessLog.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqReportBusinessLog : ILogInvokerEx
|
||||
{
|
||||
UgqReportLogInfo m_info;
|
||||
|
||||
public UgqReportBusinessLog(UInt32 questId, UInt32 questRevision, string report)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new UgqReportLogInfo(this, questId, questRevision, report);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
}
|
||||
33
GameServer/Contents/QuestUGQ/Log/UgqTestAbortBusinessLog.cs
Normal file
33
GameServer/Contents/QuestUGQ/Log/UgqTestAbortBusinessLog.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqTestAbortBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqTestAbortBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqTestCompleteBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqTestCompleteBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_info);
|
||||
}
|
||||
|
||||
}
|
||||
34
GameServer/Contents/QuestUGQ/Log/UgqTestDeleteBusinessLog.cs
Normal file
34
GameServer/Contents/QuestUGQ/Log/UgqTestDeleteBusinessLog.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class UgqTestDeleteBusinessLog : ILogInvokerEx
|
||||
{
|
||||
QuestIdLogInfo m_info;
|
||||
|
||||
public UgqTestDeleteBusinessLog(UInt32 questId, UInt32 questRevision)
|
||||
: base(LogDomainType.QuestUgq)
|
||||
{
|
||||
m_info = new QuestIdLogInfo(this, questId, questRevision);
|
||||
}
|
||||
|
||||
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