/// <summary>
/// Remove all the items.
/// </summary>
/// <param name="drop">Drop the removed Items.</param>
public override void RemoveAllItems(bool drop)
{
var allItemInfos = m_Inventory.AllItemInfos;
for (int i = allItemInfos.Count - 1; i >= 0; i--) {
// Multiple items may be dropped at the same time.
if (allItemInfos.Count <= i) {
continue;
}
if (drop) {
DropItem(allItemInfos[i], true, true);
} else {
m_Inventory.RemoveItem(allItemInfos[i]);
}
}
}