184 {
186 Construction construction = base_building.GetConstruction();
187 string part_name = BuildPartActionData.Cast(action_data).m_PartType;
189
190 check_data.m_PartName = part_name;
191 check_data.m_AdditionalExcludes.
Insert(action_data.m_Player);
192
193 return !construction.IsCollidingEx( check_data ) && construction.CanBuildPart( part_name, action_data.m_MainItem, false );
194 }
void CollisionCheckData()
void Construction(BaseBuildingBase parent)
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.