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

◆ TransferItem()

override bool PlayerContainer::TransferItem ( )
inlineprotected

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

518 {
519 if (CanTakeToInventory())
520 {
521 LeftArea left_area = LeftArea.Cast( GetParent() );
522 EntityAI item;
523 if (left_area)
524 {
525 if (GetFocusedContainer().IsInherited( ContainerWithCargo ) || GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ))
526 {
527 return GetFocusedContainer().TransferItem();
528 }
529 else
530 {
531 item = GetFocusedItem();
532 if( item )
533 {
534 GetGame().GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.CARGO, item );
535 return true;
536 }
537 }
538 }
539 else
540 {
541 if (!GetFocusedContainer().IsInherited( ContainerWithCargo ) && !GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ))
542 {
543 item = GetFocusedItem();
544 if( item )
545 {
546 GetGame().GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.CARGO, item );
547 return true;
548 }
549 }
550 }
551 }
552 return false;
553 }
class LogManager EntityAI
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
proto native DayZPlayer GetPlayer()
override EntityAI GetFocusedItem()
Определения PlayerContainer.c:555
proto native CGame GetGame()
proto native Widget GetParent()
Get parent of the Effect.
Определения Effect.c:407

Перекрестные ссылки GetFocusedItem(), GetGame(), GetParent() и CGame::GetPlayer().