113 {
115 Construction construction = base_building.GetConstruction();
116
117 string part_name = BuildPartActionData.Cast(action_data).m_PartType;
119
120 check_data.m_PartName = part_name;
121 check_data.m_AdditionalExcludes.
Insert(action_data.m_Player);
122
123 if (!construction.IsCollidingEx(check_data) && construction.CanBuildPart(part_name, action_data.m_MainItem, true))
124 {
125
126 construction.BuildPartServer(action_data.m_Player, part_name,
AT_BUILD_PART);
127
128 action_data.m_MainItem.DecreaseHealth(UADamageApplied.BUILD, false);
129 }
130 }
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.