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

◆ CheckRequest() [4/4]

override bool HandEventBase::CheckRequest ( )
inlineprivate

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

623 {
624 if (!GameInventory.CheckSwapItemsRequest(m_Player, m_Src, m_Src2, m_Dst, m_Dst2, GameInventory.c_MaxItemDistanceRadius))
625 {
626 #ifdef ENABLE_LOGGING
627 if ( LogManager.IsInventoryHFSMLogEnable() )
628 {
629 Debug.InventoryHFSMLog("CheckSwapItemsRequest - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
630 }
631 #endif
632 }
633 else if (!m_Player.GetHumanInventory().CanAddSwappedEntity(m_Src, m_Src2, m_Dst, m_Dst2))
634 {
635 #ifdef ENABLE_LOGGING
636 if ( LogManager.IsInventoryHFSMLogEnable() )
637 {
638 Debug.InventoryHFSMLog("CanAddSwappedEntity - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
639 }
640 #endif
641 }
642 else
643 return true;
644
645 return false;
646 }
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:560
ref InventoryLocation m_Src2
destination for new item (i.e. hands)
Определения Hand_Events.c:559
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.