초기커밋
This commit is contained in:
47
ServerCommon/1. Define/BusinessLog/Domain/ChatData.cs
Normal file
47
ServerCommon/1. Define/BusinessLog/Domain/ChatData.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain;
|
||||
|
||||
public class ChatLogData : ILogInvoker.IInfo
|
||||
{
|
||||
public ChatLogData()
|
||||
: base()
|
||||
{ }
|
||||
|
||||
[JsonProperty]
|
||||
public string TargetUser { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string ChatMessage { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public int cellPosX { get; set; } = 0;
|
||||
[JsonProperty]
|
||||
public int cellPosY { get; set; } = 0;
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 생성용 객체 정의
|
||||
//=====================================================================================
|
||||
|
||||
public void setItemInfo(ChatLogData logData)
|
||||
{
|
||||
TargetUser = logData.TargetUser;
|
||||
ChatMessage = logData.ChatMessage;
|
||||
cellPosX = logData.cellPosX;
|
||||
cellPosY = logData.cellPosY;
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 출력용 객체 정의
|
||||
//=====================================================================================
|
||||
public ChatLogData(ILogInvoker parent, ChatLogData itemParam)
|
||||
: base(parent)
|
||||
{
|
||||
if (null != itemParam)
|
||||
{
|
||||
setItemInfo(itemParam);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user