NScumm.Scumm.ScummEngine.GetInventorySlot C# (CSharp) Méthode

GetInventorySlot() private méthode

private GetInventorySlot ( ) : int
Résultat 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