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

◆ GetKindlingCount()

int GetKindlingCount ( )
protected

Returns count of all kindling type items (define in 'm_KindlingTypes') attached to fireplace.

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

1521 {
1522 int attachmentsCount = GetInventory().AttachmentCount();
1523 int kindlingCount = 0;
1524
1525 for (int i = 0; i < attachmentsCount; ++i)
1526 {
1527 ItemBase item = ItemBase.Cast(GetInventory().GetAttachmentFromIndex(i));
1528
1529 if (IsKindling(item))
1530 kindlingCount++;
1531 }
1532
1533 return kindlingCount;
1534 }
bool IsKindling(ItemBase item)
Returns if item attached to fireplace is kindling.
Определения FireplaceBase.c:1553
Определения InventoryItem.c:731

Перекрестные ссылки IsKindling().

Используется в HasAnyKindling(), HasLastFuelKindlingAttached() и RefreshFireplaceVisuals().