29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
using GTANetworkAPI;
|
|
using reallife_gamemode.Server.Entities;
|
|
using reallife_gamemode.Server.Extensions;
|
|
using reallife_gamemode.Server.Inventory.Interfaces;
|
|
using reallife_gamemode.Server.Managers;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace reallife_gamemode.Server.Inventory.Items
|
|
{
|
|
public abstract class DropItem : IDroppableItem
|
|
{
|
|
public abstract int HpAmount { get; }
|
|
public abstract int Id { get; }
|
|
public abstract string Name { get; }
|
|
public abstract string Description { get; }
|
|
public abstract int Gewicht { get; }
|
|
public abstract string Einheit { get; }
|
|
public abstract uint Object { get; }
|
|
|
|
public void Drop(UserItem uItem, Client player, int amount)
|
|
{
|
|
player.SendNotification("Du hast ~g~" + amount + " ~y~" + InventoryManager.GetItemById(uItem.ItemId).Name + " ~s~weggeworfen.", false);
|
|
InventoryManager.RemoveUserItem(player.GetUser(), uItem, amount);
|
|
}
|
|
}
|
|
}
|