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

◆ GatherInfoData()

bool ActionConstructionPartInfoContinuous::GatherInfoData ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprotected

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

83 {
85
86 EntityAI ent;
87 if (Class.CastTo(ent,target.GetObject()))
88 {
89 ActionInfoDataConstructionImpossible info = ActionInfoDataConstructionImpossible.Cast(m_InfoData);
90 ConstructionBase construction = ConstructionBase.Cast(ent.GetConstructionBasic());
91 ConstructionActionData cad = player.GetConstructionActionData();
93 construction.CanBuildPartEx(part.GetPartName(), item, info.m_InfoContextMask);
94 info.SetConstructionPart(part);
95 info.SetTool(item);
96
97 #ifdef DIAG_DEVELOPER
98 if (DiagMenu.GetBool(DiagMenuIDs.BASEBUILDING_FULLDEBUG) && info.m_InfoContextMask)
99 DbgPrint(construction, info, target.GetComponentIndex()); //print here for 'real' mask data..
100 #endif
101
102 info.m_InfoContextMask |= EConstructionInfoCategories.MATERIALS_PRESENCE; //material info should always be visible
103 info.m_InfoContextMask |= EConstructionInfoCategories.TOOL_PRESENCE; //tools info should always be visible
104
105 return info.CanDisplayInfo();
106 }
107
108 return false;
109 }
class LogManager EntityAI
ref ActionInfoDataBase m_InfoData
Определения ActionBase.c:70
int m_VariantID
Определения ActionBase.c:67
void ConstructionBase(EntityAI parent)
Определения ConstructionBase.c:58
EConstructionInfoCategories
Определения ConstructionConstants.c:2
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
DiagMenuIDs
Определения EDiagMenuIDs.c:2
void ClearInfoData()
Определения ActionBuildPart.c:312
ConstructionPart GetBuildPartInfoAtIndex(int idx)
Определения ConstructionActionData.c:373
string GetPartName()
Определения ConstructionPart.c:198

Перекрестные ссылки ActionTarget(), Class::CastTo(), ActionBuildPart::ClearInfoData(), ConstructionBase(), DiagMenu::GetBool(), ConstructionActionData::GetBuildPartInfoAtIndex(), ConstructionPart::GetPartName(), m_InfoData и m_VariantID.

Используется в ActionCondition().