Click or drag to resize
WoWBag Class
A WoW bag.
Inheritance Hierarchy

Namespace: Styx.WoWInternals
Assembly: Styx (in Styx.dll) Version: 3.0.1160.0 (3.0.1160)
Syntax
C#
public class WoWBag

The WoWBag type exposes the following members.

Properties
  NameDescription
Public propertyFirstSlotIndex
Gets the zero-based index of the first slot.
Public propertyFreeSlots
Gets the number of free slots in this bag.
Public propertyGuid
Returns the GUID of this bag.
Public propertyIsInventory
Returns a bool indicating whether this bag is the players inventory.
Public propertyItemGuids
Gets an array of item GUIDs in this bag. If an item is 0, there is no item in that slot.
Public propertyItems
Gets an array of items in this bag. If an item is null, there is no item in that slot.
Public propertyName
Returns the name of this bag.
Public propertyPhysicalItemGuids
Gets an array of all item GUIDs in this bag.
Public propertyPhysicalItems
Gets an array of all items in this bag.
Public propertySlots
Gets the slots.
Public propertyUsedSlots
Gets the number of used slots in this bag.
Top
Methods
  NameDescription
Public methodContains(WoWGuid)
Returns a bool indicating whether this bag contains an item.
Public methodContains(WoWItem)
Returns a bool indicating whether this bag contains an item.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetItemBySlot
Return an item by slot. The max slot is Slots - 1. If the returned value is null, the slot is empty.
Public methodGetItemGuidBySlot
Returns an items GUID by slot. The max slot is Slots - 1. If the returned value is 0, the slot is empty.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(WoWGuid)
Returns the index of an item or -1 if it's not in this bag.
Public methodIndexOf(WoWItem)
Returns the index of an item or -1 if it's not in this bag.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also