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

◆ ProcessItemHierarchyRecursive()

void ProcessItemHierarchyRecursive ( ItemBase item,
float heatPermeabilityCoef = 1.0 )
protected

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

1265 {
1266 float heatPermCoef = heatPermeabilityCoef;
1267
1268 // go through any attachments and cargo, recursive
1269 int inventoryAttCount = item.GetInventory().AttachmentCount();
1270 if (inventoryAttCount > 0)
1271 {
1272 ItemBase attachmentItem;
1273 for (int inAttIdx = 0; inAttIdx < inventoryAttCount; ++inAttIdx)
1274 {
1275 if (Class.CastTo(attachmentItem,item.GetInventory().GetAttachmentFromIndex(inAttIdx)))
1276 {
1277 heatPermCoef = heatPermeabilityCoef;
1278 heatPermCoef *= attachmentItem.GetHeatPermeabilityCoef();
1279
1280 if (attachmentItem.CanHaveTemperature() && !attachmentItem.IsSelfAdjustingTemperature())
1281 {
1282 SetProcessedItemTemperature(attachmentItem,heatPermCoef);
1283 }
1284
1285 ProcessItemHierarchyRecursive(attachmentItem,heatPermCoef);
1286 }
1287 }
1288 }
1289
1290 if (item.GetInventory().GetCargo())
1291 {
1292 int inventoryItemCount = item.GetInventory().GetCargo().GetItemCount();
1293 if (inventoryItemCount > 0)
1294 {
1295 ItemBase inventoryItem;
1296 for (int j = 0; j < inventoryItemCount; ++j)
1297 {
1298 if (Class.CastTo(inventoryItem,item.GetInventory().GetCargo().GetItem(j)))
1299 {
1300 heatPermCoef = heatPermeabilityCoef;
1301 heatPermCoef *= inventoryItem.GetHeatPermeabilityCoef();
1302
1303 if (inventoryItem.CanHaveTemperature() && !inventoryItem.IsSelfAdjustingTemperature())
1304 {
1305 SetProcessedItemTemperature(inventoryItem,heatPermCoef);
1306 }
1307
1308 ProcessItemHierarchyRecursive(inventoryItem,heatPermCoef);
1309 }
1310 }
1311 }
1312 }
1313 }
void SetProcessedItemTemperature(ItemBase item, float heatPermeabilityCoef=1.0)
Определения Environment.c:1315
void ProcessItemHierarchyRecursive(ItemBase item, float heatPermeabilityCoef=1.0)
Определения Environment.c:1264
Super root of all classes in Enforce script.
Определения EnScript.c:11
override bool IsSelfAdjustingTemperature()
Определения PortableGasStove.c:287
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), ItemBase::IsSelfAdjustingTemperature(), ProcessItemHierarchyRecursive() и SetProcessedItemTemperature().

Используется в ProcessItemHierarchyRecursive(), ProcessItemsInHandsTemperature() и ProcessItemsTemperature().