초기커밋
This commit is contained in:
@@ -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 TaskReservationBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private TaskReservationLogData m_data_to_log;
|
||||
public TaskReservationBusinessLog(TaskReservationLogData log_data_param)
|
||||
: base(LogDomainType.TaskReservation)
|
||||
{
|
||||
m_data_to_log = log_data_param;
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(new TaskReservationLogData(this, m_data_to_log));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
|
||||
|
||||
namespace GameServer
|
||||
{
|
||||
static public class TaskReservationBusinessLogHelper
|
||||
{
|
||||
static public TaskReservationLogData toLogInfo(TaskReservationAttribute task_reservation_attribute)
|
||||
{
|
||||
var taskReservation = new TaskReservationLogData();
|
||||
taskReservation.setInfo(task_reservation_attribute);
|
||||
return taskReservation;
|
||||
}
|
||||
|
||||
static public void setInfo(this TaskReservationLogData logData, TaskReservationAttribute task_reservation_attribute)
|
||||
{
|
||||
logData.ReservationGuid = task_reservation_attribute.ReservationGuid;
|
||||
logData.ReservationType = task_reservation_attribute.ReservationType;
|
||||
logData.JsonValue = task_reservation_attribute.JsonValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user