Remove items in dummycharacter inventory in editmapscreen, important character updates a separate networkeventtype

This commit is contained in:
Regalis
2015-10-23 19:28:21 +03:00
parent b3462b24b4
commit 6736f1dd82
17 changed files with 545 additions and 475 deletions
@@ -239,6 +239,17 @@ namespace Barotrauma.Items.Components
itemIds = null;
}
public override void Remove()
{
base.Remove();
foreach (Item item in inventory.items)
{
if (item == null) continue;
item.Remove();
}
}
public override void Load(XElement componentElement)
{
base.Load(componentElement);