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

◆ ClearInventoryReservationEx()

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

См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 764

765 {
766 if (g_Game.IsMultiplayer() && g_Game.IsServer() )
767 return true;
768
769 bool ret_val = ClearInventoryReservation(item,dst);
770 #ifdef ENABLE_LOGGING
771 if ( LogManager.IsInventoryReservationLogEnable() )
772 {
773 DayZPlayer player = g_Game.GetPlayer();
774 if ( player )
775 {
776 if (item)
777 Debug.InventoryReservationLog("Reservation cleared result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / " + item.ToString() + " / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "ClearInventoryReservation", player.ToString() );
778 else
779 Debug.InventoryReservationLog("Reservation cleared result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / null / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "ClearInventoryReservation", player.ToString() );
780 }
781 }
782 #endif
783 return ret_val;
784 }
string Debug()
Определения CachedEquipmentStorageBase.c:29
DayZGame g_Game
Определения DayZGame.c:3942
void ClearInventoryReservation()
Определения Hand_Events.c:196

Перекрестные ссылки ClearInventoryReservation(), InventoryLocation::DumpToStringNullSafe(), g_Game, Debug::InventoryReservationLog() и LogManager::IsInventoryReservationLogEnable().

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