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

◆ ReserveInventory()

override bool HandEventBase::ReserveInventory ( )
inlineprivate

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

706 {
707 if (!m_Player.GetHumanInventory().HasInventoryReservation(m_Dst.GetItem(), m_Dst) && !m_Player.GetHumanInventory().HasInventoryReservation(m_Dst2.GetItem(), m_Dst2))
708 {
709 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst.GetItem(), m_Dst, GameInventory.c_InventoryReservationTimeoutShortMS))
710 {
711 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst2.GetItem(), m_Dst2, GameInventory.c_InventoryReservationTimeoutShortMS))
712 {
713 return true;
714 }
715 else
716 {
717 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
718 }
719 }
720 }
721 return false;
722 }
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:270

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

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