90 {
92 Construction construction = base_building.GetConstruction();
93 string part_name = BuildPartActionData.Cast(action_data).m_PartType;
95
96 check_data.m_PartName = part_name;
97 check_data.m_AdditionalExcludes.
Insert(action_data.m_Player);
98
99 bool canBuild = construction.CanBuildPart(part_name, action_data.m_MainItem, true);
101 {
102 bool collides = construction.IsCollidingEx(check_data);
103
104 return !collides && canBuild;
105 }
106 else
107 {
108 return canBuild;
109 }
110 }
void CollisionCheckData()
void Construction(BaseBuildingBase parent)
proto native CGame GetGame()
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.