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

◆ AddInventoryReservationEx()

bool GameInventory::AddInventoryReservationEx ( EntityAI item,
InventoryLocation dst,
int timeout_ms )
inlineprotected

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

719 {
720 if (g_Game.IsMultiplayer() && g_Game.IsServer() )
721 return true;
722
723 bool ret_val = AddInventoryReservation(item, dst, timeout_ms);
724 #ifdef ENABLE_LOGGING
725 if ( LogManager.IsInventoryReservationLogEnable() )
726 {
727 DayZPlayer player = g_Game.GetPlayer();
728 if ( player )
729 {
730 if (item)
731 Debug.InventoryReservationLog("Reservation result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / " + item.ToString() + " / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "AddInventoryReservation", player.ToString() );
732 else
733 Debug.InventoryReservationLog("Reservation result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / null / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "AddInventoryReservation", player.ToString() );
734 }
735 }
736 #endif
737 return ret_val;
738 }
string Debug()
Определения CachedEquipmentStorageBase.c:29
DayZGame g_Game
Определения DayZGame.c:3942
static proto native bool AddInventoryReservation(EntityAI item, InventoryLocation dst, int timeout_ms)

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

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