초기커밋
This commit is contained in:
50
ServerCommon/BusinessLog/LogInvoker/CharacterBusinessLog.cs
Normal file
50
ServerCommon/BusinessLog/LogInvoker/CharacterBusinessLog.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
|
||||
|
||||
using META_ID = System.UInt32;
|
||||
using CHARACTER_GUID = System.String;
|
||||
using META_TYPE = System.String;
|
||||
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain;
|
||||
|
||||
|
||||
public class CharacterBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private CharacterLogInfo m_character_log_info;
|
||||
|
||||
public CharacterBusinessLog(LogAction logAction, CharacterLogInfo logInfo)
|
||||
: base(LogDomainType.Character, logAction)
|
||||
{
|
||||
ArgumentNullReferenceCheckHelper.throwIfNull(logInfo, () => $"logInfo is null !!!");
|
||||
|
||||
m_character_log_info = new CharacterLogInfo(this, logInfo);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_character_log_info);
|
||||
}
|
||||
|
||||
public CharacterLogInfo getInfo()
|
||||
{
|
||||
return m_character_log_info;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user