47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerBase;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class PositionLogInfo : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty]
|
|
public string PositionMoveType { get; set; } = string.Empty; // PositionMoveType
|
|
[JsonProperty]
|
|
public string ServerName { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string MapType { get; set; } = string.Empty; // MapFileType
|
|
[JsonProperty]
|
|
public int MapMId { get; set; } // MapFileType 에 따른 MetaId
|
|
[JsonProperty]
|
|
public string RoomId { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public Pos Pos { get; set; } = new Pos();
|
|
|
|
public PositionLogInfo()
|
|
: base()
|
|
{ }
|
|
|
|
public PositionLogInfo(ILogInvoker parent, PositionLogInfo logParam)
|
|
: base(parent)
|
|
{
|
|
if (null != logParam)
|
|
{
|
|
setPositionInfo(logParam);
|
|
}
|
|
}
|
|
|
|
public void setPositionInfo(PositionLogInfo logInfo)
|
|
{
|
|
PositionMoveType = logInfo.PositionMoveType;
|
|
ServerName = logInfo.ServerName;
|
|
RoomId = logInfo.RoomId;
|
|
MapType = logInfo.MapType;
|
|
MapMId = logInfo.MapMId;
|
|
Pos = logInfo.Pos;
|
|
}
|
|
}
|