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

◆ Post_SetupAction()

override bool ActionAttachToConstruction::Post_SetupAction ( ActionData action_data)
inlineprivate

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

31 {
32 if (!super.Post_SetupAction(action_data))
33 return false;
34
35 if (!g_Game.IsDedicatedServer())
36 {
37 int slotID = FindAndTranslateAttachmentSlot(action_data.m_Player, action_data.m_Target, action_data.m_MainItem);
38 AttachToConstructionActionData.Cast(action_data).m_SlotID = slotID;
39 return slotID != InventorySlots.INVALID;
40 }
41
42 return true;
43 }
DayZGame g_Game
Определения DayZGame.c:4074
int FindAndTranslateAttachmentSlot(PlayerBase player, ActionTarget target, ItemBase item)
where appropriate, returns valid attachment slot ID even without proper selection
Определения ActionAttachToConstruction.c:115
PlayerBase m_Player
Определения ActionBase.c:40
ref ActionTarget m_Target
Определения ActionBase.c:39
ItemBase m_MainItem
Определения ActionBase.c:35

Перекрестные ссылки FindAndTranslateAttachmentSlot(), g_Game, InventorySlots::INVALID, ActionData::m_MainItem, ActionData::m_Player, AttachToConstructionActionData::m_SlotID и ActionData::m_Target.