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

◆ AttachmentRemoved()

void HandsContainer::AttachmentRemoved ( EntityAI item,
string slot,
EntityAI parent )
inlineprotected

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

1343 {
1344 int slot_id = InventorySlots.GetSlotIdFromString( slot );
1345
1346 CargoContainer old_cont = m_AttachmentCargos.Get( item );
1347 if( old_cont )
1348 {
1349 m_Body.RemoveItem( old_cont );
1350 m_AttachmentCargos.Remove( item );
1351 delete old_cont;
1352 if( m_Parent )
1353 m_Parent.Refresh();
1354 Inventory.GetInstance().UpdateConsoleToolbar();
1355 }
1356
1357 AttachmentsWrapper old_att_cont = m_AttachmentAttachmentsContainers.Get( item );
1358 if( old_att_cont )
1359 {
1360 m_AttachmentAttachmentsContainers.Remove( item );
1361 m_AttachmentAttachments.Remove( item );
1362 m_Body.RemoveItem( old_att_cont );
1363 delete old_att_cont;
1364 if( m_Parent )
1365 m_Parent.Refresh();
1366 Inventory.GetInstance().UpdateConsoleToolbar();
1367 }
1368 RecomputeOpenedContainers();
1369 }
void Inventory(LayoutHolder parent)
Определения Inventory.c:74
Widget m_Parent
Определения SizeToChild.c:92
void CargoContainer(LayoutHolder parent, bool is_attachment=false)
Определения CargoContainer.c:32
ref map< EntityAI, ref CargoContainer > m_AttachmentCargos
Определения HandsContainer.c:10
ref map< EntityAI, AttachmentsWrapper > m_AttachmentAttachmentsContainers
Определения HandsContainer.c:11
ref map< EntityAI, ref Attachments > m_AttachmentAttachments
Определения HandsContainer.c:12

Перекрестные ссылки Container::CargoContainer(), InventorySlots::GetSlotIdFromString(), Inventory(), m_AttachmentAttachments, m_AttachmentAttachmentsContainers, m_AttachmentCargos и m_Parent.

Используется в DestroyAtt(), ShowAtt() и ~HandsContainer().