HISP/HorseIsleServer/LibHISP/Game/Items/ItemInstance.cs
2022-03-07 07:08:47 -05:00

27 lines
509 B
C#

using HISP.Security;
using HISP.Game;
namespace HISP.Game.Items
{
public class ItemInstance
{
public int RandomId;
public int ItemId;
public int Data;
public Item.ItemInformation GetItemInfo()
{
return Item.GetItemById(ItemId);
}
public ItemInstance(int id,int randomId = -1, int data=0)
{
RandomId = RandomID.NextRandomId(randomId);
Data = data;
ItemId = id;
}
}
}