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

◆ HasAttachmentSlot()

bool GameInventory::HasAttachmentSlot ( int slotId)
inlineprotected
Возвращает
true if this entity has attachments slot with id=slotId

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

187 {
188 int count = GetAttachmentSlotsCount();
189 for (int i = 0; i < count; i++)
190 {
191 if (GetAttachmentSlotId(i) == slotId)
192 return true;
193 }
194 return false;
195 }
proto native int GetAttachmentSlotsCount()
proto native int GetAttachmentSlotId(int index)

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