Class HeroInventory
Heroes item inventory instance.
Inheritance
System.Object
HeroInventory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Oasys.Common.GameObject.Clients.ExtendedInstances
Assembly: Oasys.Common.dll
Syntax
public class HeroInventory
Constructors
HeroInventory(Int32)
Declaration
public HeroInventory(int instancePointer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | instancePointer |
Methods
EmbedSlot(Int32)
Declaration
public static ItemSlot EmbedSlot(int itemIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | itemIndex |
Returns
Type | Description |
---|---|
ItemSlot |
FindSpellSlot(Int32)
Declaration
public static SpellSlot FindSpellSlot(int itemIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | itemIndex |
Returns
Type | Description |
---|---|
SpellSlot |
GetItemByID(ItemID)
Gets an item by the ID given.
Declaration
public HeroInventory.Item GetItemByID(ItemID id)
Parameters
Type | Name | Description |
---|---|---|
ItemID | id |
Returns
Type | Description |
---|---|
HeroInventory.Item |
GetItemList()
Gets the items in order from the item slots.
Declaration
public List<HeroInventory.Item> GetItemList()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<HeroInventory.Item> |
HasItem(ItemID)
Checks whether if it has an item by the ID given.
Declaration
public bool HasItem(ItemID id)
Parameters
Type | Name | Description |
---|---|---|
ItemID | id |
Returns
Type | Description |
---|---|
System.Boolean |