mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 13:15:53 +12:00
Add Feature pt1
This commit is contained in:
parent
a184e4d735
commit
092534e331
131 changed files with 3113 additions and 1418 deletions
27
HorseIsleServer/LibHISP/Game/Items/ItemInstance.cs
Normal file
27
HorseIsleServer/LibHISP/Game/Items/ItemInstance.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue