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

◆ GetKindlingCount()

int GetKindlingCount ( )
protected

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

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

1541 {
1542 int attachmentsCount = GetInventory().AttachmentCount();
1543 int kindlingCount = 0;
1544
1545 for (int i = 0; i < attachmentsCount; ++i)
1546 {
1547 ItemBase item = ItemBase.Cast(GetInventory().GetAttachmentFromIndex(i));
1548
1549 if (IsKindling(item))
1550 kindlingCount++;
1551 }
1552
1553 return kindlingCount;
1554 }
bool IsKindling(ItemBase item)
Returns if item attached to fireplace is kindling.
Определения FireplaceBase.c:1573

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

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