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

◆ ClearInventoryReservationEx()

bool GameInventory::ClearInventoryReservationEx ( EntityAI item,
InventoryLocation dst )
inlineprotected

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

763 {
764 if (GetGame().IsMultiplayer() && GetGame().IsServer() )
765 return true;
766
767 bool ret_val = ClearInventoryReservation(item,dst);
768 #ifdef ENABLE_LOGGING
769 if ( LogManager.IsInventoryReservationLogEnable() )
770 {
771 DayZPlayer player = GetGame().GetPlayer();
772 if ( player )
773 {
774 if (item)
775 Debug.InventoryMoveLog("Reservation cleared result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / " + item.ToString() + " / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "ClearInventoryReservation", player.ToString() );
776 else
777 Debug.InventoryMoveLog("Reservation cleared result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / null / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "ClearInventoryReservation", player.ToString() );
778 }
779 }
780 #endif
781 return ret_val;
782 }
void ClearInventoryReservation()
Определения Hand_Events.c:193
void Debug()
Определения UniversalTemperatureSource.c:349
proto native DayZPlayer GetPlayer()
proto native CGame GetGame()

Перекрестные ссылки ClearInventoryReservation(), InventoryLocation::DumpToStringNullSafe(), GetGame(), CGame::GetPlayer(), Debug::InventoryMoveLog() и LogManager::IsInventoryReservationLogEnable().

Используется в ClearInventoryReservation(), DeferredSwapEntities::ClearInventoryReservation() и DeferredSwapEntities::ReserveInventory().