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

◆ ReserveInventory()

override bool DeferredSwapEntities::ReserveInventory ( HumanInventory inventory)
inlineprivate

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

57 {
59 {
60 if (inventory.AddInventoryReservationEx(m_item1, m_dst1, GameInventory.c_InventoryReservationTimeoutShortMS))
61 {
62 if (inventory.AddInventoryReservationEx(m_item2, m_dst2, GameInventory.c_InventoryReservationTimeoutShortMS))
63 {
64 return true;
65 }
66 else
67 {
69 }
70 }
71 }
72 return false;
73 }
EntityAI m_item1
Определения DayZPlayerInventory.c:42
ref InventoryLocation m_dst1
Определения DayZPlayerInventory.c:44
EntityAI m_item2
Определения DayZPlayerInventory.c:43
ref InventoryLocation m_dst2
Определения DayZPlayerInventory.c:45
bool ClearInventoryReservationEx(EntityAI item, InventoryLocation dst)
Определения Inventory.c:762
static proto native bool HasInventoryReservation(EntityAI item, InventoryLocation dst)
Internally: HasInventoryReservationEx(item, dst, FindInventoryReservationMode.LEGACY,...
bool AddInventoryReservationEx(EntityAI item, InventoryLocation dst, int timeout_ms)
Определения Inventory.c:716

Перекрестные ссылки GameInventory::AddInventoryReservationEx(), GameInventory::c_InventoryReservationTimeoutShortMS, GameInventory::ClearInventoryReservationEx(), GameInventory::HasInventoryReservation(), m_dst1, m_dst2, m_item1 и m_item2.