1232 {
1234 array<ConstructionPart> parts =
GetConstruction().GetConstructionParts().GetValueArray();
1235
1236 Man p;
1237
1238 #ifdef SERVER
1239 array<Man> players = new array<Man>;
1240 g_Game.GetWorld().GetPlayerList(players);
1241 if (players.Count())
1242 p = players[0];
1243 #else
1245 #endif
1246
1248 {
1249 bool excluded = false;
1250 string partName = part.GetPartName();
1251 if (excludes)
1252 {
1253 foreach (string exclude : excludes)
1254 {
1256 {
1257 excluded = true;
1258 break;
1259 }
1260 }
1261 }
1262
1263 if (!excluded)
1264 {
1266 }
1267 }
1268
1270 }
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)
Construction GetConstruction()
void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
array< string > OnDebugSpawnBuildExcludes()
Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
bool Contains(string sample)
Returns true if sample is substring of string.