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

◆ AddInventoryReservationEx()

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

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

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

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

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