ORK Framework  2.33.0
API Documentation
ORKFramework.AIRulesetInventory Class Reference
Inheritance diagram for ORKFramework.AIRulesetInventory:
ORKFramework.InventoryCollection< AIRulesetShortcut >

Public Member Functions

 AIRulesetInventory (Inventory parent)
 
override void Clear ()
 
override void UpdateLists ()
 
override bool Contains (int id, int quantity)
 
override int GetCount (int id)
 
int GetEquippedCount (int id)
 
override void Get (int id, int quantity, ref List< IShortcut > list)
 
bool GetEquip (int id)
 
List< AIRulesetShortcutGetByAIType (int typeID, bool checkParent)
 
void GetByAIType (int typeID, bool checkParent, ref List< AIRulesetShortcut > list)
 
virtual List< int > GetAITypes (int parentType)
 
virtual bool HasNewAITypes (bool checkParent, List< int > types)
 
virtual bool HasAIType (bool checkParent, int typeID, bool checkNewContent)
 
virtual void AddAIType (int typeID, bool checkParent, int quantity, bool showNotification, bool showConsole)
 
override bool Add (AIRulesetShortcut shortcut, bool showNotification, bool showConsole, bool markNewContent)
 
virtual void RemoveAIType (int typeID, bool checkParent, int quantity, bool showNotification, bool showConsole)
 
override void Remove (AIRulesetShortcut shortcut, int quantity, bool showNotification, bool showConsole)
 
override void AddNotification (AIRulesetShortcut shortcut, int addedQuantity, bool showNotification, bool showConsole)
 
override void RemoveNotification (AIRulesetShortcut shortcut, int removedQuantity, bool showNotification, bool showConsole)
 
override void LoadGame (DataObject data)
 
- Public Member Functions inherited from ORKFramework.InventoryCollection< AIRulesetShortcut >
 InventoryCollection (Inventory inventory)
 
virtual void CheckDataChanged ()
 
virtual void MarkDataChanged (bool fireChanged)
 
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 ContainsEqual (T shortcut)
 
virtual int GetAllowedCount (int id, int quantityLimit)
 
virtual T Get (int id)
 
virtual T Get (int id, VariableCondition variableCondition)
 
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 UpdateLoadGame (DataObject[] data)
 

Protected Member Functions

virtual bool CheckAIType (bool checkParent, int typeID, List< int > list)
 
virtual void AddNew (AIRulesetShortcut shortcut, bool markNewContent)
 
- Protected Member Functions inherited from ORKFramework.InventoryCollection< AIRulesetShortcut >
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

List< int > aiType = new List<int>()
 
List< int > newAIType = new List<int>()
 
- Protected Attributes inherited from ORKFramework.InventoryCollection< AIRulesetShortcut >
Inventory parent
 
GUIDCollection< T > itemList
 
List< int > itemType
 
List< int > newItemType
 
List< int > addedItems
 
bool dataChanged
 

Properties

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