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

◆ AttachmentRemoved()

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

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

1344 {
1345 int slot_id = InventorySlots.GetSlotIdFromString( slot );
1346
1347 CargoContainer old_cont = m_AttachmentCargos.Get( item );
1348 if( old_cont )
1349 {
1350 m_Body.RemoveItem( old_cont );
1351 m_AttachmentCargos.Remove( item );
1352 delete old_cont;
1353 if( m_Parent )
1354 m_Parent.Refresh();
1355 Inventory.GetInstance().UpdateConsoleToolbar();
1356 }
1357
1358 AttachmentsWrapper old_att_cont = m_AttachmentAttachmentsContainers.Get( item );
1359 if( old_att_cont )
1360 {
1361 m_AttachmentAttachmentsContainers.Remove( item );
1362 m_AttachmentAttachments.Remove( item );
1363 m_Body.RemoveItem( old_att_cont );
1364 delete old_att_cont;
1365 if( m_Parent )
1366 m_Parent.Refresh();
1367 Inventory.GetInstance().UpdateConsoleToolbar();
1368 }
1369 RecomputeOpenedContainers();
1370 }
void Inventory(LayoutHolder parent)
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().