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

◆ CanReceiveAttachment() [2/2]

override bool FireplaceBase::CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

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

72 {
73 if ( !super.CanReceiveAttachment(attachment, slotId) )
74 return false;
75
76 ItemBase item = ItemBase.Cast( attachment );
77
78 //cookware
79 if ( ( item.Type() == ATTACHMENT_CAULDRON ) || ( item.Type() == ATTACHMENT_COOKING_POT ) )
80 {
81 if ( FindAttachmentBySlotName( "CookingTripod" ) || IsOven() )
82 return true;
83 return false;
84 }
85 if ( item.Type() == ATTACHMENT_FRYING_PAN )
86 {
87 if ( IsOven() )
88 return true;
89 return false;
90 }
91
92 // food on direct cooking slots
93 if ( item.IsKindOf( "Edible_Base" ) )
94 {
95 if ( IsOven() )
96 return true;
97 return false;
98 }
99 //tripod
100
101 if ( item.IsInherited(TripodBase) )
102 {
103 if (!IsOven() && !GetHierarchyParent())
104 return true;
105 return false;
106 }
107
108 //stones
109 if ( item.Type() == ATTACHMENT_STONES )
110 {
111 if ( !GetHierarchyParent() && !IsBurning() )
112 return true;
113 return false;
114 }
115
116 return true;
117 }
ATTACHMENT_FRYING_PAN
Определения FireplaceBase.c:201
ATTACHMENT_CAULDRON
Определения FireplaceBase.c:202
ATTACHMENT_STONES
Определения FireplaceBase.c:199
ATTACHMENT_COOKING_POT
Определения FireplaceBase.c:200
bool IsBurning()
Определения FireplaceBase.c:1619
bool IsOven()
Определения FireplaceBase.c:1643
class GP5GasMask extends MaskBase ItemBase

Перекрестные ссылки ATTACHMENT_CAULDRON, ATTACHMENT_COOKING_POT, ATTACHMENT_FRYING_PAN, ATTACHMENT_STONES, IsBurning() и IsOven().