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

◆ ReserveInventory()

override bool HandEventBase::ReserveInventory ( )
inlineprivate

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

679 {
680 if (!m_Player.GetHumanInventory().HasInventoryReservation(m_Dst.GetItem(), m_Dst) && !m_Player.GetHumanInventory().HasInventoryReservation(m_Dst2.GetItem(), m_Dst2))
681 {
682 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst.GetItem(), m_Dst, GameInventory.c_InventoryReservationTimeoutShortMS))
683 {
684 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst2.GetItem(), m_Dst2, GameInventory.c_InventoryReservationTimeoutShortMS))
685 {
686 return true;
687 }
688 else
689 {
690 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
691 }
692 }
693 }
694 return false;
695 }
DayZPlayer m_Player
Определения Hand_Events.c:42
ref InventoryLocation m_Dst2
src of old item in hands
Определения Hand_Events.c:560
ref InventoryLocation m_Dst
Определения Hand_Events.c:272

Перекрестные ссылки GameInventory::c_InventoryReservationTimeoutShortMS, m_Dst, m_Dst2 и m_Player.

Используется в HumanInventory::ForceSwapEntities().