ItemShort.AddToInventory C# (CSharp) Method

AddToInventory() public method

public AddToInventory ( ) : void
return void
    public void AddToInventory()
    {
        if(this.isMoney)
        {
            GameHandler.AddMoney(this.quantity);
        }
        else if(ItemDropType.ITEM.Equals(this.type))
        {
            GameHandler.AddItem(this.id, this.quantity);
        }
        else if(ItemDropType.WEAPON.Equals(this.type))
        {
            GameHandler.AddWeapon(this.id, this.quantity);
        }
        else if(ItemDropType.ARMOR.Equals(this.type))
        {
            GameHandler.AddArmor(this.id, this.quantity);
        }
    }