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

◆ OnUpdateActionsNoTool()

void ConstructionActionData::OnUpdateActionsNoTool ( Object item,
Object target,
int component_index )
inlineprotected

used for ShelterSite only (legacy)

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

206 {
207 ValidateConstructionData(item,target,component_index);
208
209 ItemBase tool = ItemBase.Cast(item);
210 ShelterSite shelter = ShelterSite.Cast(target);
212 if (!tool && shelter && Class.CastTo(con,shelter.GetConstructionBasic()))
213 {
214 array<string> compNames = new array<string>;
215 target.GetActionComponentNameList(component_index, compNames, LOD.NAME_VIEW); //in case component is part of more than one named selection
216 m_BuildPartsNoTool.Clear();
217 foreach (string compName : compNames)
218 {
219 array<ConstructionPart> tmp = new array<ConstructionPart>();
220 con.GetConstructionPartsToBuild(compName, tmp, null, m_MainPartNameNoTool, false); //m_MainPartNameNoTool unused?
221 foreach (ConstructionPart part : tmp)
222 {
223 if (m_BuildPartsNoTool.Find(part) == -1)
224 m_BuildPartsNoTool.Insert(part);
225 }
226 }
227 m_ActionNoToolVariantManager.SetActionVariantCount(m_BuildPartsNoTool.Count());
228 }
229 else
230 {
231 m_BuildPartsNoTool.Clear();
233 }
234 }
void ConstructionBase(EntityAI parent)
Определения ConstructionBase.c:58
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
class GP5GasMask extends MaskBase ItemBase
string m_MainPartNameNoTool
Определения ConstructionActionData.c:17
ActionVariantManager m_ActionNoToolVariantManager
Определения ConstructionActionData.c:30
void ValidateConstructionData(Object item, Object target, int component_index)
Single update method to prepare and validate all construction data for the update,...
Определения ConstructionActionData.c:153
ref array< ConstructionPart > m_BuildPartsNoTool
Определения ConstructionActionData.c:7

Перекрестные ссылки Class::CastTo(), ConstructionBase(), m_ActionNoToolVariantManager, m_BuildPartsNoTool, m_MainPartNameNoTool, LOD::NAME_VIEW и ValidateConstructionData().