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

◆ GetKindlingCount()

int GetKindlingCount ( )
protected

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

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

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

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

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