int GetInventorySlot() { for (var i = 0; i < _resManager.NumInventory; i++) { if (_inventory[i] == 0) return i; } throw new NotSupportedException(string.Format("Inventory full, {0} max items", _resManager.NumInventory)); }