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

◆ GateAttachmentConditions()

bool BaseBuildingBase::GateAttachmentConditions ( int slotId)
inlineprotected

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

790 {
792 {
793 ConstructionPart wall_base_down = GetConstruction().GetConstructionPart("wall_base_down");
794 ConstructionPart wall_base_up = GetConstruction().GetConstructionPart("wall_base_up");
795 string slot_name = InventorySlots.GetSlotName(slotId);
796 if ( !wall_base_up.IsBuilt() )
797 {
798 if ( slot_name == ATTSLOT_CAMONET || slot_name == ATTSLOT_BARBEDWIRE_UP )
799 {
800 return false;
801 }
802 }
803 if ( !wall_base_down.IsBuilt() )
804 {
805 if ( slot_name == ATTSLOT_BARBEDWIRE_DOWN )
806 {
807 return false;
808 }
809 }
810 }
811 return true;
812 }
Construction GetConstruction()
Определения BaseBuildingBase.c:2244
string ATTSLOT_BARBEDWIRE_DOWN
Определения Fence.c:23
string ATTSLOT_BARBEDWIRE_UP
Определения Fence.c:24
int GetGateState()
Определения Fence.c:72
const int GATE_STATE_PARTIAL
Определения Fence.c:4
string ATTSLOT_CAMONET
Определения Fence.c:22
bool IsBuilt()
Определения ConstructionPart.c:45

Перекрестные ссылки ATTSLOT_BARBEDWIRE_DOWN, ATTSLOT_BARBEDWIRE_UP, ATTSLOT_CAMONET, GATE_STATE_PARTIAL, GetConstruction(), GetGateState(), InventorySlots::GetSlotName() и ConstructionPart::IsBuilt().

Используется в CanDisplayAttachmentSlot() и CanReceiveAttachment().