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

◆ CheckRequest() [4/4]

override bool HandEventBase::CheckRequest ( )
inlineprivate

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

597 {
598 if (!GameInventory.CheckSwapItemsRequest(m_Player, m_Src, m_Src2, m_Dst, m_Dst2, GameInventory.c_MaxItemDistanceRadius))
599 {
600 #ifdef ENABLE_LOGGING
601 if ( LogManager.IsInventoryHFSMLogEnable() )
602 {
603 Debug.InventoryHFSMLog("CheckSwapItemsRequest - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
604 }
605 #endif
606 }
607 else if (!m_Player.GetHumanInventory().CanAddSwappedEntity(m_Src, m_Src2, m_Dst, m_Dst2))
608 {
609 #ifdef ENABLE_LOGGING
610 if ( LogManager.IsInventoryHFSMLogEnable() )
611 {
612 Debug.InventoryHFSMLog("CanAddSwappedEntity - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
613 }
614 #endif
615 }
616 else
617 return true;
618
619 return false;
620 }
DayZPlayer m_Player
Определения Hand_Events.c:42
ref InventoryLocation m_Src
Определения Hand_Events.c:43
HandEventID GetEventID()
Определения Hand_Events.c:53
HandEventID
events
Определения Hand_Events.c:7
void Debug()
Определения UniversalTemperatureSource.c:349
ref InventoryLocation m_Dst2
src of old item in hands
Определения Hand_Events.c:534
ref InventoryLocation m_Src2
destination for new item (i.e. hands)
Определения Hand_Events.c:533
ref InventoryLocation m_Dst
Определения Hand_Events.c:272

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckSwapItemsRequest(), GetEventID(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable(), m_Dst, m_Dst2, m_Player, m_Src и m_Src2.