초기커밋
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
using MetaAssets;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
|
||||
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain;
|
||||
|
||||
|
||||
public class BattleObjectLogInfo
|
||||
{
|
||||
[JsonProperty("anchor_guid")]
|
||||
public string m_anchor_guid { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty("battle_object_type")]
|
||||
public EBattleObjectType m_battle_object_type { get; set; } = EBattleObjectType.None;
|
||||
|
||||
[JsonProperty("active_time")]
|
||||
public DateTime m_active_time { get; set; } = DateTimeHelper.Current;
|
||||
}
|
||||
|
||||
public class BattleObjectStateUpdateLogInfo : ILogInvoker.IInfo
|
||||
{
|
||||
[JsonProperty("room_id")]
|
||||
public string m_room_id { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty("object_infos")]
|
||||
public List<BattleObjectLogInfo> m_infos { get; set; } = new();
|
||||
|
||||
|
||||
public BattleObjectStateUpdateLogInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public BattleObjectStateUpdateLogInfo(ILogInvoker parent, BattleObjectStateUpdateLogInfo logInfo) : base(parent)
|
||||
{
|
||||
if (null != logInfo)
|
||||
{
|
||||
setLogInfo(logInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private void setLogInfo(BattleObjectStateUpdateLogInfo logInfo)
|
||||
{
|
||||
m_room_id = logInfo.m_room_id;
|
||||
m_infos = logInfo.m_infos;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user