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 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; } }