83 {
85
87 if (Class.CastTo(ent,target.GetObject()))
88 {
89 ActionInfoDataConstructionImpossible info = ActionInfoDataConstructionImpossible.Cast(
m_InfoData);
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());
100 #endif
101
104
105 return info.CanDisplayInfo();
106 }
107
108 return false;
109 }
ref ActionInfoDataBase m_InfoData
void ConstructionBase(EntityAI parent)
EConstructionInfoCategories
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 GetBuildPartInfoAtIndex(int idx)