초기커밋
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 CharacterProfileBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private CharacterProfileLogData m_data_to_log;
|
||||
public CharacterProfileBusinessLog(CharacterProfileLogData log_data_param)
|
||||
: base(LogDomainType.Craft)
|
||||
{
|
||||
m_data_to_log = log_data_param;
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(new CharacterProfileLogData(this, m_data_to_log));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using ServerCommon;
|
||||
using META_ID = System.UInt32;
|
||||
|
||||
namespace GameServer
|
||||
{
|
||||
static public class CharacterProfileBusinessLogHelper
|
||||
{
|
||||
static public CharacterProfileLogData toLogInfo(CharacterProfileAttribute attribute)
|
||||
{
|
||||
var logData = new CharacterProfileLogData();
|
||||
logData.setInfo(attribute);
|
||||
return logData;
|
||||
}
|
||||
|
||||
static public void setInfo(this CharacterProfileLogData logData, CharacterProfileAttribute attribute)
|
||||
{
|
||||
logData.SNSLick = attribute.SNSLick;
|
||||
logData.Message = attribute.Message;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user