124 {
127 string part_name = BuildPartActionData.Cast(action_data).m_PartType;
129
130 check_data.m_PartName = part_name;
132
133 bool canBuild = construction.CanBuildPart(part_name, action_data.
m_MainItem,
true);
134 #ifdef DIAG_DEVELOPER
135 if (action_data.
m_Player.GetConstructionActionData().GetFastConstructionMode())
136 canBuild = true;
137 #endif
139 {
140 bool collides = construction.IsCollidingEx(check_data);
141
142 return !collides && canBuild;
143 }
144 else
145 {
146 return canBuild;
147 }
148 }
void ConstructionBase(EntityAI parent)
void CollisionCheckData()
ref ActionTarget m_Target
proto void Insert(int index, string input)
Inserts a string into the n-th index, increasing the string length by the size of the input.