DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ FullyBuild()

void ItemBase::FullyBuild ( )
inlineprotected

См. определение в файле BaseBuildingBase.c строка 1270

1271 {
1272 array<string> excludes = OnDebugSpawnBuildExcludes();
1273 array<ConstructionPart> parts = GetConstruction().GetConstructionParts().GetValueArray();
1274
1275 Man p;
1276
1277 #ifdef SERVER
1278 array<Man> players = new array<Man>;
1279 GetGame().GetWorld().GetPlayerList(players);
1280 if (players.Count())
1281 p = players[0];
1282 #else
1283 p = GetGame().GetPlayer();
1284 #endif
1285
1286 foreach (ConstructionPart part : parts)
1287 {
1288 bool excluded = false;
1289 string partName = part.GetPartName();
1290 if (excludes)
1291 {
1292 foreach (string exclude : excludes)
1293 {
1294 if (partName.Contains(exclude))
1295 {
1296 excluded = true;
1297 break;
1298 }
1299 }
1300 }
1301
1302 if (!excluded)
1303 {
1304 OnPartBuiltServer(p, partName, AT_BUILD_PART);
1305 }
1306 }
1307
1308 GetConstruction().UpdateVisuals();
1309 }
const int AT_BUILD_PART
proto native World GetWorld()
proto native DayZPlayer GetPlayer()
Construction GetConstruction()
Определения BaseBuildingBase.c:975
void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
Определения BaseBuildingBase.c:587
array< string > OnDebugSpawnBuildExcludes()
Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
Определения BaseBuildingBase.c:1260
proto native void GetPlayerList(out array< Man > players)
proto native CGame GetGame()
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

Перекрестные ссылки AT_BUILD_PART, string::Contains(), GetConstruction(), GetGame(), CGame::GetPlayer(), World::GetPlayerList(), CGame::GetWorld(), BaseBuildingBase::OnDebugSpawnBuildExcludes() и BaseBuildingBase::OnPartBuiltServer().