초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View 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 BuffBusinessLog : ILogInvokerEx
{
private BuffLogData m_data_to_log;
public BuffBusinessLog(BuffLogData log_data_param)
: base(LogDomainType.Buff)
{
m_data_to_log = log_data_param;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new BuffLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,25 @@
using ServerCommon.BusinessLogDomain;
using ServerCommon;
using META_ID = System.UInt32;
namespace GameServer
{
static public class BuffBusinessLogHelper
{
static public BuffLogData toLogInfo(BuffAttribute.BuffInfo buffInfo, bool isDeleteBuff)
{
var logData = new BuffLogData();
logData.setInfo(buffInfo, isDeleteBuff);
return logData;
}
static public void setInfo(this BuffLogData logData, BuffAttribute.BuffInfo buffInfo, bool isDeleteBuff)
{
logData.BuffMetaID = buffInfo.BuffMetaID;
logData.BuffStartTime = buffInfo.BuffStartTime;
logData.BuffEndTime = DateTime.MinValue;
if (isDeleteBuff == true) logData.BuffEndTime = DateTime.UtcNow;
}
}
}