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

◆ AttachmentRemoved()

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

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

199 {
200 int slot_id = InventorySlots.GetSlotIdFromString( slot );
201
202 CargoContainer old_cont = m_AttachmentCargos.Get( item );
203 if( old_cont )
204 {
205 m_AttachmentCargos.Remove( item );
206 delete old_cont;
207
208 if( m_Parent )
209 m_Parent.Refresh();
210 Inventory.GetInstance().UpdateConsoleToolbar();
211 }
212
213
214 AttachmentsWrapper old_att_cont = m_AttachmentAttachmentsContainers.Get( item );
215 if( old_att_cont )
216 {
218 m_AttachmentAttachments.Remove( item );
219 delete old_att_cont;
220
221 if( m_Parent )
222 m_Parent.Refresh();
223 Inventory.GetInstance().UpdateConsoleToolbar();
224 }
225
227 RecomputeOpenedContainers();
228 }
void Inventory(LayoutHolder parent)
Определения Inventory.c:74
Widget m_Parent
Определения SizeToChild.c:92
ref map< EntityAI, ref CargoContainer > m_AttachmentCargos
ref map< EntityAI, ref Attachments > m_AttachmentAttachments
ref map< EntityAI, ref AttachmentsWrapper > m_AttachmentAttachmentsContainers

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

Используется в SetEntity() и ~ContainerWithCargoAndAttachments().