초기커밋

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,53 @@
using ServerCommon.BusinessLogDomain;
using ServerCommon;
using META_ID = System.UInt32;
namespace GameServer
{
static public class PackageBusinessLogHelper
{
static public PackageLastOrderRecordData toLastOrderRecodeLogInfo(string orderGuid, META_ID productMetaId, DateTime buyDateTime, DateTime provideTime)
{
var package = new PackageLastOrderRecordData();
package.setLastOrderRecodeInfo(orderGuid, productMetaId, buyDateTime, provideTime);
return package;
}
static public void setLastOrderRecodeInfo(this PackageLastOrderRecordData logData, string orderGuid, META_ID productMetaId, DateTime buyDateTime, DateTime provideTime)
{
logData.orderGuid = orderGuid;
logData.productMetaId = productMetaId;
logData.buyDateTime = buyDateTime;
logData.provideTime = provideTime;
}
static public PackageRepeatData toRepeatLogInfo(PackageRepeatAttribute packageAttribute)
{
var taskReservation = new PackageRepeatData();
taskReservation.setRepeatInfo(packageAttribute);
return taskReservation;
}
static public void setRepeatInfo(this PackageRepeatData logData, PackageRepeatAttribute packageAttribute)
{
logData.orderGuid = packageAttribute.OrderGuid;
logData.productMetaId = packageAttribute.ProductMetaId;
logData.leftCount = packageAttribute.LeftCount;
logData.nextGiveTime = packageAttribute.NextGiveTime;
}
static public PackageStateData toStateLogInfo(string orderGuid, BillingStateType billingStateLogType, string errMsg)
{
var taskReservation = new PackageStateData();
taskReservation.setRepeatInfo(orderGuid, billingStateLogType, errMsg);
return taskReservation;
}
static public void setRepeatInfo(this PackageStateData logData, string orderGuid, BillingStateType billingStateLogType, string errMsg)
{
logData.orderGuid = orderGuid;
logData.billingStateLogType = billingStateLogType;
logData.errMsg = errMsg;
}
}
}

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

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

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