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

◆ ExtendInventoryReservationEx()

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

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

740 {
741 if (GetGame().IsMultiplayer() && GetGame().IsServer() )
742 return true;
743
744 bool ret_val = ExtendInventoryReservation(item,dst,timeout_ms);
745 #ifdef ENABLE_LOGGING
746 if ( LogManager.IsInventoryReservationLogEnable() )
747 {
748 DayZPlayer player = GetGame().GetPlayer();
749 if ( player )
750 {
751 if (item)
752 Debug.InventoryMoveLog("Reservation result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / " + item.ToString() + " / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "ExtendInventoryReservation", player.ToString() );
753 else
754 Debug.InventoryMoveLog("Reservation result: " + ret_val + " - STS = " + player.GetSimulationTimeStamp() + " / null / " + InventoryLocation.DumpToStringNullSafe(dst), "n/a" , "n/a", "ExtendInventoryReservation", player.ToString() );
755 }
756 }
757 #endif
758 return ret_val;
759 }
void Debug()
Определения UniversalTemperatureSource.c:349
proto native DayZPlayer GetPlayer()
static proto native bool ExtendInventoryReservation(EntityAI item, InventoryLocation dst, int timeout_ms)
proto native CGame GetGame()

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