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

◆ TransferItem()

override bool AttachmentCategoriesRow::TransferItem ( )
inlineprotected

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

132 {
133 if (CanTakeToInventory())
134 {
135 EntityAI entity = GetFocusedItem();
136 SlotsIcon focused_icon = GetFocusedSlotsIcon();
137 if( entity && !entity.IsLockedInSlot() && (!focused_icon || !focused_icon.IsOutOfReach()) )
138 {
139 PlayerBase player = PlayerBase.Cast( g_Game.GetPlayer() );
140 g_Game.GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.CARGO, entity );
141 return true;
142 }
143 }
144 return false;
145 }
class LogManager EntityAI
DayZGame g_Game
Определения DayZGame.c:3942
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
bool IsOutOfReach()
Определения SlotsIcon.c:729

Перекрестные ссылки g_Game и SlotsIcon::IsOutOfReach().