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

◆ RubbleRemovalCheck()

bool RubbleRemovalCheck ( EntityAI parent)
protected

Returns 'true' if all rubble piles are removed.

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

1010 {
1011 Rebuilding reb;
1013 if (Class.CastTo(reb, parent.GetConstructionBasic()) && Class.CastTo(typeData, m_PartTypeData))
1014 {
1015 array<string> namesMap = typeData.GetRelatedPartNames();
1016 foreach (string partName : namesMap)
1017 {
1018 ConstructionPart part = reb.GetConstructionPart(partName);
1019 if (!part.IsBuilt())
1020 return false;
1021 }
1022 return true;
1023 }
1024 return false;
1025 }
ConstructionPartTypeData m_PartTypeData
Определения ConstructionPart.c:526
Super root of all classes in Enforce script.
Определения EnScript.c:11
bool IsBuilt()
Определения ConstructionPart.c:160
Instanced construction part data classes for dynamic data, statics now stored on EntityType level in ...
Определения ConstructionPart.c:4
Определения Rebuilding.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.