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

◆ GateAttachmentConditions()

bool BaseBuildingBase::GateAttachmentConditions ( int slotId)
inlineprotected

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

841 {
843 {
844 ConstructionPart wall_base_down = GetConstruction().GetConstructionPart("wall_base_down");
845 ConstructionPart wall_base_up = GetConstruction().GetConstructionPart("wall_base_up");
846 string slot_name = InventorySlots.GetSlotName(slotId);
847 if ( !wall_base_up.IsBuilt() )
848 {
849 if ( slot_name == ATTACHMENT_SLOT_CAMONET || slot_name == ATTACHMENT_SLOT_BARBEDWIRE_UP )
850 {
851 return false;
852 }
853 }
854 if ( !wall_base_down.IsBuilt() )
855 {
856 if ( slot_name == ATTACHMENT_SLOT_BARBEDWIRE_DOWN )
857 {
858 return false;
859 }
860 }
861 }
862 return true;
863 }
Construction GetConstruction()
Определения BaseBuildingBase.c:2171
void ConstructionPart(string name, string part_name, string main_part_name, int id, bool is_built, bool is_base, bool is_gate, array< string > required_parts)
Определения ConstructionPart.c:531
const string ATTACHMENT_SLOT_BARBEDWIRE_DOWN
Определения Fence.c:23
const string ATTACHMENT_SLOT_BARBEDWIRE_UP
Определения Fence.c:24
const string ATTACHMENT_SLOT_CAMONET
Определения Fence.c:22
int GetGateState()
Определения Fence.c:84
const int GATE_STATE_PARTIAL
Определения Fence.c:4
bool IsBuilt()
Определения ConstructionPart.c:160

Перекрестные ссылки ATTACHMENT_SLOT_BARBEDWIRE_DOWN, ATTACHMENT_SLOT_BARBEDWIRE_UP, ATTACHMENT_SLOT_CAMONET, GATE_STATE_PARTIAL, GetConstruction(), GetGateState(), InventorySlots::GetSlotName() и ConstructionPart::IsBuilt().

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