ORK Framework  2.29.3
API Documentation
ORKFramework.ItemInventory Class Reference
Inheritance diagram for ORKFramework.ItemInventory:
ORKFramework.InventoryCollection< ItemShortcut >

Public Member Functions

 ItemInventory (Inventory parent)
 
List< ItemShortcutGetUseableItems (UseableIn useIn)
 
List< ItemShortcutGetUseableItemsByType (int typeID, UseableIn useIn, bool checkParent)
 
override void AddNotification (ItemShortcut shortcut, int addedQuantity, bool showNotification, bool showConsole)
 
override void RemoveNotification (ItemShortcut shortcut, int removedQuantity, bool showNotification, bool showConsole)
 
- Public Member Functions inherited from ORKFramework.InventoryCollection< ItemShortcut >
 InventoryCollection (Inventory inventory)
 
virtual void Clear ()
 
virtual void CheckDataChanged ()
 
virtual void MarkDataChanged (bool fireChanged)
 
virtual void UpdateLists ()
 
virtual List< T > GetAll ()
 
virtual void Set (List< T > list)
 
virtual string CreateGUID ()
 
virtual void GetStealable (ref List< IInventoryShortcut > list)
 
virtual bool HasSellable (List< int > itemTypes)
 
virtual bool HasSellable (int typeID, bool checkParent)
 
virtual void GetSellable (ref List< ShopWrapperShortcut > list, List< int > itemTypes)
 
virtual void GetByItemType (int typeID, bool checkParent, ref List< IShortcut > list)
 
virtual void GetByItemType (int typeID, bool checkParent, ref List< IInventoryShortcut > list)
 
virtual void RemoveItemType (int typeID, bool removeSubTypes, bool showNotification, bool showConsole)
 
virtual void GetItemTypes (int parentType, ref List< int > list, bool onlySellable)
 
virtual bool HasNewItemTypes (bool checkParent, List< int > types, bool onlySellable)
 
virtual bool HasItemType (bool checkParent, int parentTypeID, bool onlySellable, bool checkNewContent)
 
virtual bool Contains (T shortcut)
 
virtual bool Contains (int id)
 
virtual bool Contains (int id, int quantity)
 
virtual bool ContainsEqual (T shortcut)
 
virtual int GetCount (int id)
 
virtual int GetAllowedCount (int id, int quantityLimit)
 
virtual T Get (int id)
 
virtual T Get (int id, VariableCondition variableCondition)
 
virtual void Get (int id, int quantity, ref List< IShortcut > list)
 
virtual IShortcut Get (IShortcut shortcut)
 
virtual T Get (string guid)
 
virtual void Add (InventoryCollection< T > inventory)
 
virtual bool Add (T shortcut, bool showNotification, bool showConsole, bool markNewContent)
 
virtual void Remove (T shortcut, int quantity, bool showNotification, bool showConsole)
 
virtual List< int > GetUseableItemTypes (UseableIn useIn, int parentType)
 
virtual bool HasUseableItems (UseableIn useIn)
 
virtual bool HasUseableItemsByType (int typeID, UseableIn useIn, bool checkParent)
 
abstract void AddNotification (T shortcut, int addedQuantity, bool showNotification, bool showConsole)
 
abstract void RemoveNotification (T shortcut, int removedQuantity, bool showNotification, bool showConsole)
 
virtual DataObject SaveGame ()
 Used to save the data - you need to add the data to a ORKFramework.DataObject. More...
 
virtual void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the ORKFramework.DataObject. More...
 
virtual void UpdateLoadGame (DataObject[] data)
 

Properties

override int MaxCount [get]
 
- Properties inherited from ORKFramework.InventoryCollection< ItemShortcut >
InventoryAdded Added
 
virtual int Count [get]
 
virtual bool IsEmpty [get]
 
abstract int MaxCount [get]
 

Additional Inherited Members

- Protected Member Functions inherited from ORKFramework.InventoryCollection< ItemShortcut >
virtual void AddToItemList (T item)
 
virtual bool CheckItemType (bool checkParent, int parentTypeID, bool onlySellable, List< int > list)
 
virtual void FireAdded (IInventoryShortcut shortcut, int quantity, bool showNotification, bool showConsole, bool markNewContent)
 
virtual void AddToList (T shortcut, ref int addedQuantity, bool showNotification, bool showConsole, bool markNewContent)
 
- Protected Attributes inherited from ORKFramework.InventoryCollection< ItemShortcut >
Inventory parent
 
GUIDCollection< T > itemList
 
List< int > itemType
 
List< int > newItemType
 
List< int > addedItems
 
bool dataChanged