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

◆ SelectItem()

override bool SlotsContainer::SelectItem ( )
inlineprotected

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

176 {
177 ItemBase item = ItemBase.Cast( GetFocusedItem() );
178 SlotsIcon icon = GetFocusedSlotsIcon();
179
180 if( item && !item.IsLockedInSlot() && !icon.IsOutOfReach() && !icon.IsReserved() && item.IsTakeable() && item.CanPutIntoHands(null))
181 {
182 ItemManager.GetInstance().SetSelectedItemEx(item, null, icon);
183 return true;
184 }
185 return false;
186 }
class GP5GasMask extends MaskBase ItemBase
override bool CanPutIntoHands(EntityAI parent)
Определения GardenBase.c:275
override bool IsTakeable()
Определения BaseBuildingBase.c:988
override EntityAI GetFocusedItem()
Определения SlotsContainer.c:226
override SlotsIcon GetFocusedSlotsIcon()
Определения SlotsContainer.c:217
bool IsOutOfReach()
Определения SlotsIcon.c:729
bool IsReserved()
Определения SlotsIcon.c:200

Перекрестные ссылки ItemBase::CanPutIntoHands(), GetFocusedItem(), GetFocusedSlotsIcon(), ItemManager::GetInstance(), SlotsIcon::IsOutOfReach(), SlotsIcon::IsReserved(), ItemBase::IsTakeable() и ItemManager::SetSelectedItemEx().