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

◆ Combine()

override bool Container::Combine ( )
inlineprotected

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

918 {
919 if (CanCombine())
920 {
921 if (GetFocusedIcon())
922 {
923 Icon icon = GetFocusedIcon();
924 if( icon )
925 {
926 EntityAI item_in_hands = GetGame().GetPlayer().GetHumanInventory().GetEntityInHands();
927 EntityAI prev_item = EntityAI.Cast( icon.GetObject() );
928 if( item_in_hands && prev_item )
929 {
930 return icon.CombineItems( item_in_hands, prev_item );
931 }
932 }
933 }
934 }
935 return false;
936 }
class LogManager EntityAI
proto native DayZPlayer GetPlayer()
Icon GetFocusedIcon()
Определения CargoContainer.c:431
bool CombineItems(EntityAI entity1, EntityAI entity2)
Определения Icon.c:731
Object GetObject()
Определения Icon.c:1266
proto native CGame GetGame()

Перекрестные ссылки Icon::CombineItems(), GetFocusedIcon(), GetGame(), Icon::GetObject() и CGame::GetPlayer().