81 lines
2.2 KiB
C#
81 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
|
|
using META_ID = System.UInt32;
|
|
using CHARACTER_GUID = System.String;
|
|
using META_TYPE = System.String;
|
|
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class CharacterLogInfo : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty]
|
|
public CHARACTER_GUID CharacterGuid { get; set; } = string.Empty;
|
|
|
|
[JsonProperty]
|
|
public string CharacterPK { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string CharacterSK { get; set; } = string.Empty;
|
|
|
|
[JsonProperty]
|
|
public List<int> CustomAppearance { get; set; } = new();
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
public CharacterLogInfo()
|
|
: base()
|
|
{
|
|
}
|
|
|
|
public void setInfo(CharacterLogInfo logInfo)
|
|
{
|
|
ArgumentNullReferenceCheckHelper.throwIfNull(logInfo, () => $"logInfo is null !!!");
|
|
|
|
CharacterGuid = logInfo.CharacterGuid;
|
|
CharacterPK = logInfo.CharacterPK;
|
|
CharacterSK = logInfo.CharacterSK;
|
|
|
|
CustomAppearance = logInfo.CustomAppearance;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public CharacterLogInfo(ILogInvoker parent, CharacterLogInfo logParam)
|
|
: base(parent)
|
|
{
|
|
if (null != logParam)
|
|
{
|
|
setInfo(logParam);
|
|
}
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 설정용 함수
|
|
//=====================================================================================
|
|
public void setLogProperty( CHARACTER_GUID charGuid
|
|
, string charPK, string charSK
|
|
, List<int> customAppearance )
|
|
{
|
|
CharacterGuid = charGuid;
|
|
CharacterPK = charPK;
|
|
CharacterSK = charSK;
|
|
|
|
CustomAppearance = customAppearance;
|
|
}
|
|
}
|