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

◆ OnUpdateActionsHandsGeneric()

void ConstructionActionData::OnUpdateActionsHandsGeneric ( Object item,
Object target,
int componentIndex )
inlineprotected

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

237 {
238 ValidateConstructionData(item,target,componentIndex);
239
240 ItemBase tool = ItemBase.Cast(item);
241 EntityAI ent = EntityAI.Cast(target);
243 if (!tool && ent && Class.CastTo(con,ent.GetConstructionBasic()))
244 {
245 array<string> compNames = new array<string>;
246 target.GetActionComponentNameList(componentIndex, compNames, LOD.NAME_VIEW); //in case component is part of more than one named selection
248 foreach (string compName : compNames)
249 {
250 array<ConstructionPart> tmp = new array<ConstructionPart>();
251 con.GetConstructionPartsToBuild(compName, tmp, null, m_MainPartNameNoTool, false); //m_MainPartNameNoTool unused?
252 foreach (ConstructionPart part : tmp)
253 {
254 if (m_BuildPartsHandsGeneric.Find(part) == -1)
255 m_BuildPartsHandsGeneric.Insert(part);
256 }
257 }
259 }
260 else
261 {
264 }
265 }
class LogManager EntityAI
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
ActionVariantManager m_ActionHandsGenericVariantManager
Определения ConstructionActionData.c:31
ref array< ConstructionPart > m_BuildPartsHandsGeneric
Определения ConstructionActionData.c:8
string m_MainPartNameNoTool
Определения ConstructionActionData.c:17
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

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

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