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

◆ GetKindlingCount()

int GetKindlingCount ( )
protected

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

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

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

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

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