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

◆ AttachmentAdded()

void Attachments::AttachmentAdded ( EntityAI item,
string slot,
EntityAI parent )
inlineprotected

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

417 {
418 int slot_id = InventorySlots.GetSlotIdFromString(slot);
419 SlotsIcon icon = m_AttachmentSlots.Get(slot_id);
420 if (icon)
421 {
422 icon.SetSlotID(slot_id);
423 icon.SetSlotDisplayName(InventorySlots.GetSlotDisplayName(slot_id));
424 if (item)
425 {
426 icon.Init(item);
427 }
428 }
429 }
ref map< int, SlotsIcon > m_AttachmentSlots
Определения Attachments.c:10
void Init(EntityAI obj, bool reservation=false)
Определения SlotsIcon.c:501
void SetSlotID(int slot_ID)
Определения SlotsIcon.c:195
void SetSlotDisplayName(string text)
Определения SlotsIcon.c:144

Перекрестные ссылки InventorySlots::GetSlotDisplayName(), InventorySlots::GetSlotIdFromString(), SlotsIcon::Init(), m_AttachmentSlots, SlotsIcon::SetSlotDisplayName() и SlotsIcon::SetSlotID().

Используется в Attachments(), InitAttachmentGrid() и ~Attachments().