164 {
166
169 if (ent)
170 {
172 if (con)
173 {
174 array<string> compNames = new array<string>;
175 target.GetActionComponentNameList(component_index, compNames, LOD.NAME_VIEW);
177 foreach (string compName : compNames)
178 {
179 array<ConstructionPart> tmp = new array<ConstructionPart>();
180 con.GetConstructionPartsToBuild(compName, tmp, tool,
m_MainPartName,
true);
182 {
185 }
186 }
188 }
189 else
190 {
193 }
194 }
195 else
196 {
199 }
200
201
202 }
void ConstructionBase(EntityAI parent)
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)
class GP5GasMask extends MaskBase ItemBase
ref array< ConstructionPart > m_BuildParts
ActionVariantManager m_ActionVariantManager
void ValidateConstructionData(Object item, Object target, int component_index)
Single update method to prepare and validate all construction data for the update,...