DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SetupAction()

override bool ActionAttachOnSelection::SetupAction ( PlayerBase player,
ActionTarget target,
ItemBase item,
out ActionData action_data,
Param extra_data = null )
inlineprivate

См. определение в файле ActionAttachOnSelection.c строка 67

68 {
69 int attSlotId = InventorySlots.INVALID;
70 if (!GetGame().IsDedicatedServer() )
71 {
72 attSlotId = FindSlotIdToAttachOrCombine(player, target, item);
73 }
74
75 if (super.SetupAction( player, target, item, action_data, extra_data))
76 {
77 if (!GetGame().IsDedicatedServer())
78 {
79 if (attSlotId != InventorySlots.INVALID)
80 {
81 AttachActionData action_data_a = AttachActionData.Cast(action_data);
82 action_data_a.m_AttSlot = attSlotId;
83
84 return true;
85 }
86
87 return false;
88 }
89
90 return true;
91 }
92
93 return false;
94 }
int FindSlotIdToAttachOrCombine(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionAttachOnSelection.c:20
int m_AttSlot
Определения ActionAttach.c:3
proto native CGame GetGame()

Перекрестные ссылки ActionData, ActionTarget, FindSlotIdToAttachOrCombine(), GetGame(), InventorySlots::INVALID и AttachActionData::m_AttSlot.