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

◆ GetWaterQuantity()

int ItemBase::GetWaterQuantity ( int slotIndex)
inlineprivate

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

951 {
952 int bitsPerSlot = 8;
953 int slotsPerInt = 32 / bitsPerSlot;
954
955 int groupIndex = slotIndex / slotsPerInt;
956 int bitOffset = (slotIndex % slotsPerInt) * bitsPerSlot;
957
958 int value = GetWaterBitmapByIndex(groupIndex);
959 return (value >> bitOffset) & 255;
960 }
int GetWaterBitmapByIndex(int index)
Определения GardenBase.c:919

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

Используется в UpdateSlots().