Start work on Inventory System
This commit is contained in:
18
Server/Inventory/Items/FoodItem.cs
Normal file
18
Server/Inventory/Items/FoodItem.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using GTANetworkAPI;
|
||||
using reallife_gamemode.Server.Inventory.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace reallife_gamemode.Server.Inventory.Items
|
||||
{
|
||||
public abstract class FoodItem : IUsableItem
|
||||
{
|
||||
public abstract int HpAmount { get; }
|
||||
|
||||
public void Use(Client player)
|
||||
{
|
||||
player.Health += HpAmount;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user