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

◆ FullyBuild()

void ItemBase::FullyBuild ( )
inlineprotected

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

1251 {
1252 array<string> excludes = OnDebugSpawnBuildExcludes();
1253 array<ConstructionPart> parts = GetConstruction().GetConstructionParts().GetValueArray();
1254
1255 Man p;
1256
1257 #ifdef SERVER
1258 array<Man> players = new array<Man>;
1259 GetGame().GetWorld().GetPlayerList(players);
1260 if (players.Count())
1261 p = players[0];
1262 #else
1263 p = GetGame().GetPlayer();
1264 #endif
1265
1266 foreach (ConstructionPart part : parts)
1267 {
1268 bool excluded = false;
1269 string partName = part.GetPartName();
1270 if (excludes)
1271 {
1272 foreach (string exclude : excludes)
1273 {
1274 if (partName.Contains(exclude))
1275 {
1276 excluded = true;
1277 break;
1278 }
1279 }
1280 }
1281
1282 if (!excluded)
1283 {
1284 OnPartBuiltServer(p, partName, AT_BUILD_PART);
1285 }
1286 }
1287
1288 GetConstruction().UpdateVisuals();
1289 }
const int AT_BUILD_PART
Определения _constants.c:6
proto native World GetWorld()
proto native DayZPlayer GetPlayer()
Construction GetConstruction()
Определения BaseBuildingBase.c:955
void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
Определения BaseBuildingBase.c:563
array< string > OnDebugSpawnBuildExcludes()
Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
Определения BaseBuildingBase.c:1240
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().