IInventory

C++
struct IInventory : public IGameObjectExtension {
  enum EInventorySlots {
    eInventorySlot_Weapon = 0,
    eInventorySlot_Explosives,
    eInventorySlot_Grenades,
    eInventorySlot_Special,
    eInventorySlot_Last
  };
};
File

IItemSystem.h

IInventory::EInventorySlots Enumeration
C++
enum EInventorySlots {
  eInventorySlot_Weapon = 0,
  eInventorySlot_Explosives,
  eInventorySlot_Grenades,
  eInventorySlot_Special,
  eInventorySlot_Last
};
File

IItemSystem.h

IInventory::AddAccessory Method
C++
virtual bool AddAccessory(IEntityClass* itemClass) = 0;
IInventory::AddAmmoUser Method
C++
virtual void AddAmmoUser(IEntityClass* pAmmoType) = 0;
IInventory::AddItem Method
C++
virtual bool AddItem(EntityId id) = 0;
IInventory::AddListener Method
C++
virtual void AddListener(struct IInventoryListener* pListener) = 0;
IInventory::AreItemsInSameSlot Method
C++
virtual bool AreItemsInSameSlot(const char* itemClass1, const char* itemClass2) const = 0;
IInventory::AssociateItemCategoryToSlot Method
C++
virtual void AssociateItemCategoryToSlot(const char* itemCategory, EInventorySlots slotId) = 0;
IInventory::Clear Method
C++
virtual void Clear() = 0;
IInventory::Destroy Method
C++
virtual void Destroy() = 0;
IInventory::FindItem Method
C++
virtual int FindItem(EntityId itemId) const = 0;
IInventory::FindNext Method
C++
virtual int FindNext(IEntityClass * pClass, const char * category, int firstSlot, bool wrap) const = 0;
IInventory::FindPrev Method
C++
virtual int FindPrev(IEntityClass * pClass, const char * category, int firstSlot, bool wrap) const = 0;
IInventory::GetAccessory Method
C++
virtual const char* GetAccessory(int slotId) const = 0;
IInventory::GetAccessoryClass Method
C++
virtual const IEntityClass* GetAccessoryClass(int slotId) const = 0;
IInventory::GetAccessoryCount Method
C++
virtual int GetAccessoryCount() const = 0;
IInventory::GetActor Method
C++
virtual IActor* GetActor() = 0;
IInventory::GetAmmoCapacity Method
C++
virtual int GetAmmoCapacity(IEntityClass* pAmmoType) const = 0;
IInventory::GetAmmoCount Method
C++
virtual int GetAmmoCount(IEntityClass* pAmmoType) const = 0;
IInventory::GetAmmoType Method
C++
virtual IEntityClass* GetAmmoType(int idx) const = 0;
IInventory::GetAmmoTypesCount Method
C++
virtual int GetAmmoTypesCount() const = 0;
IInventory::GetCapacity Method
C++
virtual int GetCapacity() const = 0;
IInventory::GetCount Method
C++
virtual int GetCount() const = 0;
IInventory::GetCountOfCategory Method
C++
virtual int GetCountOfCategory(const char * categoryName) const = 0;
IInventory::GetCountOfClass Method
C++
virtual int GetCountOfClass(const char * className) const = 0;
IInventory::GetCountOfUniqueId Method
C++
virtual int GetCountOfUniqueId(uint8 uniqueId) const = 0;
IInventory::GetCurrentItem Method
C++
virtual EntityId GetCurrentItem() const = 0;
IInventory::GetHolsteredItem Method
C++
virtual EntityId GetHolsteredItem() const = 0;
IInventory::GetItem Method
C++
virtual EntityId GetItem(int slotId) const = 0;
IInventory::GetItemByClass Method
C++
virtual EntityId GetItemByClass(IEntityClass * pClass, IItem * pIgnoreItem = NULL) const = 0;
IInventory::GetItemByName Method
C++
virtual IItem* GetItemByName(const char* name) const = 0;
IInventory::GetItemString Method
C++
virtual const char* GetItemString(int slotId) const = 0;
IInventory::GetLastItem Method
C++
virtual EntityId GetLastItem() const = 0;
IInventory::GetLastSelectedInSlot Method
C++
virtual EntityId GetLastSelectedInSlot(IInventory::EInventorySlots slotId) const = 0;
IInventory::GetNumberOfUsersForAmmo Method
C++
virtual int GetNumberOfUsersForAmmo(IEntityClass* pAmmoType) const = 0;
IInventory::GetSlotCount Method
C++
virtual int GetSlotCount(int slotId) const = 0;
IInventory::GetSlotForItemCategory Method
C++
virtual EInventorySlots GetSlotForItemCategory(const char* itemCategory) const = 0;
IInventory::HasAccessory Method
C++
virtual bool HasAccessory(IEntityClass* pClass) const = 0;
IInventory::HolsterItem Method
C++
virtual void HolsterItem(bool holster) = 0;
IInventory::IgnoreNextClear Method
C++
virtual void IgnoreNextClear() = 0;
IInventory::IsAvailableSlotForItemCategory Method
C++
virtual bool IsAvailableSlotForItemCategory(const char* itemCategory) const = 0;
IInventory::IsAvailableSlotForItemClass Method
C++
virtual bool IsAvailableSlotForItemClass(const char* itemClass) const = 0;
IInventory::IsSerializingForLevelChange Method
C++
virtual bool IsSerializingForLevelChange() const = 0;
IInventory::RemoveAllItems Method
C++
virtual void RemoveAllItems() = 0;
IInventory::RemoveAmmoUser Method
C++
virtual void RemoveAmmoUser(IEntityClass* pAmmoType) = 0;
IInventory::RemoveItem Method
C++
virtual bool RemoveItem(EntityId id) = 0;
IInventory::RemoveListener Method
C++
virtual void RemoveListener(struct IInventoryListener* pListener) = 0;
IInventory::ResetAmmo Method
C++
virtual void ResetAmmo() = 0;
IInventory::RMIReqToServer_AddEquipmentPack Method
C++
virtual void RMIReqToServer_AddEquipmentPack(const char* _pszEquipmentPack, bool _bAdd, bool _bPrimary) const = 0;
IInventory::RMIReqToServer_AddItem Method
C++
virtual void RMIReqToServer_AddItem(const char* _pszItemClass) const = 0;
IInventory::RMIReqToServer_RemoveAllItems Method
C++
virtual void RMIReqToServer_RemoveAllItems() const = 0;
IInventory::RMIReqToServer_RemoveItem Method
C++
virtual void RMIReqToServer_RemoveItem(const char* _pszItemClass) const = 0;
IInventory::RMIReqToServer_SetAmmoCount Method
C++
virtual void RMIReqToServer_SetAmmoCount(const char* _pszAmmoClass, int _iAmount) const = 0;
IInventory::SerializeInventoryForLevelChange Method
C++
virtual void SerializeInventoryForLevelChange(TSerialize ser) = 0;
IInventory::SetAmmoCapacity Method
C++
virtual void SetAmmoCapacity(IEntityClass* pAmmoType, int max) = 0;
IInventory::SetAmmoCount Method
C++
virtual void SetAmmoCount(IEntityClass* pAmmoType, int count) = 0;
IInventory::SetCurrentItem Method
C++
virtual void SetCurrentItem(EntityId itemId) = 0;
IInventory::SetHolsteredItem Method
C++
virtual void SetHolsteredItem(EntityId itemId) = 0;
IInventory::SetInventorySlotCapacity Method
C++
virtual void SetInventorySlotCapacity(EInventorySlots slotId, unsigned int capacity) = 0;
IInventory::SetLastItem Method
C++
virtual void SetLastItem(EntityId itemId) = 0;