GameHandler.HasInInventory C# (CSharp) Method

HasInInventory() public static method

public static HasInInventory ( ItemDropType type, int itemID, int quantity ) : bool
type ItemDropType
itemID int
quantity int
return bool
    public static bool HasInInventory(ItemDropType type, int itemID, int quantity)
    {
        bool has = false;
        if(ItemDropType.ITEM.Equals(type))
        {
            has = GameHandler.HasItem(itemID, quantity);
        }
        else if(ItemDropType.WEAPON.Equals(type))
        {
            has = GameHandler.HasWeapon(itemID, quantity);
        }
        else if(ItemDropType.ARMOR.Equals(type))
        {
            has = GameHandler.HasArmor(itemID, quantity);
        }
        return has;
    }
GameHandler