NScumm.Scumm.ScummEngine.GetInventorySlot C# (CSharp) Метод

GetInventorySlot() приватный Метод

private GetInventorySlot ( ) : int
Результат int
        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));
        }
ScummEngine