1265 {
1266 float heatPermCoef = heatPermeabilityCoef;
1267
1268
1269 int inventoryAttCount = item.GetInventory().AttachmentCount();
1270 if (inventoryAttCount > 0)
1271 {
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
1281 {
1283 }
1284
1286 }
1287 }
1288 }
1289
1290 if (item.GetInventory().GetCargo())
1291 {
1292 int inventoryItemCount = item.GetInventory().GetCargo().GetItemCount();
1293 if (inventoryItemCount > 0)
1294 {
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
1304 {
1306 }
1307
1309 }
1310 }
1311 }
1312 }
1313 }
void SetProcessedItemTemperature(ItemBase item, float heatPermeabilityCoef=1.0)
void ProcessItemHierarchyRecursive(ItemBase item, float heatPermeabilityCoef=1.0)
Super root of all classes in Enforce script.
override bool IsSelfAdjustingTemperature()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.