78 lines
2.5 KiB
C#
78 lines
2.5 KiB
C#
using MetaAssets;
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class BattleObjectInteractionLogInfo : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty("interaction_user_guid")]
|
|
public string m_interaction_user_guid { get; set; } = string.Empty;
|
|
|
|
[JsonProperty("interaction_user_nickname")]
|
|
public string m_interaction_user_nickname { get; set; } = string.Empty;
|
|
|
|
[JsonProperty("interaction_anchor_guid")]
|
|
public string m_interaction_anchor_guid { get; set; } = string.Empty;
|
|
|
|
[JsonProperty("room_id")]
|
|
public string m_room_id { get; set; } = string.Empty;
|
|
|
|
[JsonProperty("battle_object_type")]
|
|
public EBattleObjectType m_battle_object_type { get; set; } = EBattleObjectType.None;
|
|
[JsonProperty("pod_type")]
|
|
public ECombatPodType m_pod_type { get; set; } = ECombatPodType.None;
|
|
|
|
[JsonProperty("has_pod_combat")]
|
|
public bool m_has_pod_combat { get; set; } = false;
|
|
|
|
[JsonProperty("pod_combat_pos")]
|
|
public Pos m_pod_combat_pos { get; set; } = new();
|
|
|
|
[JsonProperty("pod_combat_state")]
|
|
public PodCombatStateType m_pod_combat_state { get; set; } = PodCombatStateType.None;
|
|
|
|
[JsonProperty("next_active_time")]
|
|
public DateTime m_object_next_active_time = DateTimeHelper.Current;
|
|
|
|
[JsonProperty("is_active")]
|
|
public bool m_is_active = false;
|
|
|
|
[JsonProperty("reward")]
|
|
public List<MetaAssets.Reward> m_rewards = new();
|
|
|
|
|
|
public BattleObjectInteractionLogInfo()
|
|
{
|
|
}
|
|
|
|
public BattleObjectInteractionLogInfo(ILogInvoker parent, BattleObjectInteractionLogInfo logInfo)
|
|
: base(parent)
|
|
{
|
|
if (null != logInfo)
|
|
{
|
|
setLogInfo(logInfo);
|
|
}
|
|
}
|
|
|
|
private void setLogInfo(BattleObjectInteractionLogInfo logInfo)
|
|
{
|
|
m_interaction_user_guid = logInfo.m_interaction_user_guid;
|
|
m_interaction_user_nickname = logInfo.m_interaction_user_nickname;
|
|
m_interaction_anchor_guid = logInfo.m_interaction_anchor_guid;
|
|
m_room_id = logInfo.m_room_id;
|
|
m_battle_object_type = logInfo.m_battle_object_type;
|
|
m_pod_type = logInfo.m_pod_type;
|
|
m_has_pod_combat = logInfo.m_has_pod_combat;
|
|
m_pod_combat_pos = logInfo.m_pod_combat_pos;
|
|
m_pod_combat_state = logInfo.m_pod_combat_state;
|
|
m_object_next_active_time = logInfo.m_object_next_active_time;
|
|
m_is_active = logInfo.m_is_active;
|
|
m_rewards = logInfo.m_rewards;
|
|
}
|
|
|
|
} |