ORK Framework  3.17.1
API Documentation
GamingIsLove.ORKFramework.Inventory Class Reference
Inheritance diagram for GamingIsLove.ORKFramework.Inventory:
GamingIsLove.ORKFramework.IInventoryExchange GamingIsLove.ORKFramework.ItemBoxInventory

Public Member Functions

 Inventory (Combatant combatant)
 
 Inventory (Group g)
 
virtual void Clear ()
 
virtual void SetTimestamp (ITimestamp shortcut)
 
virtual IContent GetContent ()
 
virtual Combatant GetOwner ()
 
virtual bool IsPlayerOwned ()
 
virtual void FireChanged ()
 
virtual void CheckDataChanged (bool checkCurrency, bool checkItems, bool checkEquipment, bool checkAIBehaviours, bool checkAIRulesets, bool checkCraftingRecipes)
 
virtual void MarkFireChanged ()
 
virtual void FireChanged (int quantity, IInventoryShortcut shortcut, bool showNotification, bool showConsole)
 
virtual void AutoAddShortcut (IShortcut shortcut)
 
virtual void UpdateSize ()
 
virtual string CreateGUID ()
 
virtual T Get< T > (string guid)
 
virtual bool CanCollect (IShortcut item, int quantity)
 
virtual void CheckQuantity (IShortcut shortcut)
 
virtual int GetAllowedQuantity (IShortcut shortcut, int quantity)
 
virtual void AddOccupiedSpace (IInventoryShortcut shortcut)
 
virtual bool CheckSpace (float space, bool add)
 
virtual void UpdateEquippedSpace ()
 
virtual InventoryContainer GetContainer (InventoryContainerAsset asset)
 
virtual void UpdateContainers ()
 
virtual InventoryContainer GetContainerFor (IInventoryShortcut shortcut)
 
virtual bool CanAddToSlot (IInventoryShortcut shortcut)
 
virtual bool AddToSlot (IInventoryShortcut shortcut)
 
virtual bool RemoveFromSlot (IInventoryShortcut shortcut)
 
virtual void GetAll (bool addCurrency, bool addEmptyCurrency, bool addItems, bool addEquipment, LevelValueCheck equipmentLevelCheck, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, ItemType itemType, bool checkParent, ref List< IShortcut > list)
 
virtual void GetAll (bool addCurrency, bool addEmptyCurrency, bool addItems, bool addEquipment, LevelValueCheck equipmentLevelCheck, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, ItemType itemType, bool checkParent, ref List< IInventoryShortcut > list)
 
virtual void Add (Inventory inventory)
 
virtual void Add< T > (IDataCall call, ItemGain< T >[] list, bool showNotification, bool showConsole)
 
virtual void Add (List< IShortcut > list, bool showNotification, bool showConsole)
 
virtual bool AddAccess (IShortcut item, bool showNotification, bool showConsole, bool markNewContent)
 
virtual bool Add (IShortcut item, bool showNotification, bool showConsole, bool markNewContent)
 
virtual void Remove (List< IShortcut > list, bool showNotification, bool showConsole)
 
virtual void RemoveAccess (IShortcut item, int quantity, bool showNotification, bool showConsole)
 
virtual void Remove (IShortcut item, int quantity, bool showNotification, bool showConsole)
 
virtual IShortcut SplitAccess (IShortcut item, int newQuantity)
 
virtual IShortcut Split (IShortcut item, int newQuantity)
 
virtual bool CanSplit (IInventoryShortcut item)
 
virtual bool MergeAccess (IShortcut originalShortcut, IShortcut otherShortcut)
 
virtual bool Merge (IShortcut originalShortcut, IShortcut otherShortcut)
 
virtual void Drop (List< IShortcut > list, bool showNotification, bool showConsole, List< GameObject > droppedObjects)
 
virtual void DropAccess (IShortcut item, int quantity, bool showNotification, bool showConsole)
 
virtual void Drop (IShortcut item, int quantity, bool showNotification, bool showConsole)
 
virtual void DropAccess (IShortcut item, int quantity, bool showNotification, bool showConsole, List< GameObject > droppedObjects)
 
virtual void Drop (IShortcut item, int quantity, bool showNotification, bool showConsole, List< GameObject > droppedObjects)
 
virtual bool Has< T > (IDataCall call, ItemGain< T >[] list)
 
virtual bool Has (IShortcut item)
 
virtual bool Has (List< IShortcut > list)
 
virtual bool Has (IShortcut item, int quantity)
 
virtual int GetCount (IShortcut item)
 
virtual int GetCount (bool addCurrency, bool addItems, bool addEquipment, LevelValueCheck equipmentLevelCheck, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, ItemType itemType, bool checkParent)
 
virtual int GetAllowedCount (IShortcut shortcut)
 
virtual List< IInventoryShortcutGetStealable (bool addItems, bool addEquipment)
 
virtual bool HasSellable (bool addItems, bool addEquipment, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, List< ItemType > itemTypes)
 
virtual void GetSellable (ref List< ShopWrapperShortcut > list, bool addItems, bool addEquipment, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, List< ItemType > itemTypes)
 
virtual void RemoveItemType (ItemType itemType, bool removeSubTypes, bool removeCurrency, bool removeItems, bool removeEquipment, bool showNotification, bool showConsole)
 
virtual List< ItemTypeGetItemTypes (bool onlySellable, bool addCurrency, bool addEmptyCurrency, bool addItems, bool addEquipment, LevelValueCheck equipmentLevelCheck, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes)
 
virtual List< ItemTypeGetItemTypes (ItemType parentType, bool onlySellable, bool addCurrency, bool addEmptyCurrency, bool addItems, bool addEquipment, LevelValueCheck equipmentLevelCheck, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes)
 
virtual bool HasNewItemTypes (bool checkParent, List< ItemType > types, bool onlySellable, bool addItems, bool addEquipment, LevelValueCheck equipmentLevelCheck, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes)
 
virtual bool HasItemType (bool checkParent, ItemType itemType, bool onlySellable, bool addCurrency, bool addEmptyCurrency, bool addItems, bool addEquipment, LevelValueCheck equipmentLevelCheck, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, bool checkNewContent)
 
virtual void CheckCurrencyQuantityLimits ()
 
virtual int GetCurrency (Currency currency)
 
virtual void SetCurrencyAccess (Currency currency, int quantity, bool showNotification, bool showConsole)
 
virtual void SetCurrency (Currency currency, int quantity, bool showNotification, bool showConsole)
 
virtual bool HasEnoughCurrency (Currency currency, int quantity)
 
virtual bool HasEquippedEquipment ()
 
virtual DataObject SaveGame ()
 
virtual void LoadGame (DataObject data)
 

Public Attributes

bool showNotifications = false
 

Protected Member Functions

virtual void AddToItemList (IInventoryShortcut item)
 
virtual void RemoveFromItemList (IInventoryShortcut item)
 
virtual void InitContainers ()
 

Protected Attributes

Combatant owner
 
Group group
 
float lastTimestamp = -1
 
bool useStackType = true
 
GUIDCollection< IInventoryShortcutitemList = new GUIDCollection<IInventoryShortcut>()
 
InventoryContainer [] container
 
CurrencyInventory currency
 
ItemInventory items
 
EquipmentInventory equipment
 
CraftingInventory crafting
 
AIBehaviourInventory aiBehaviours
 
AIRulesetInventory aiRulesets
 
float occupiedSpace = 0
 
float totalSpace = 0
 
float equippedSpace = 0
 
bool markFireChanged = false
 
Notify changedHandler
 
InventoryChanged contentChangedHandler
 

Properties

Notify Changed
 
InventoryChanged ContentChanged
 
virtual bool UseStackType [get, set]
 
virtual int Count [get]
 
virtual float LastTimestamp [get, set]
 
virtual Combatant Owner [get]
 
virtual Group Group [get]
 
virtual bool HasOwners [get]
 
virtual CurrencyInventory Currencies [get]
 
virtual ItemInventory Items [get]
 
virtual EquipmentInventory Equipment [get]
 
virtual CraftingInventory Crafting [get]
 
virtual AIBehaviourInventory AIBehaviours [get]
 
virtual AIRulesetInventory AIRulesets [get]
 
virtual bool IsEmpty [get]
 
virtual float Space [get]
 
virtual float TotalSpace [get]
 
virtual bool Full [get]
 
virtual bool HasLimit [get]
 
virtual bool HasContainers [get]
 
virtual InventoryContainer [] Container [get]
 
- Properties inherited from GamingIsLove.ORKFramework.IInventoryExchange
float Space [get]
 
float TotalSpace [get]
 
bool IsEmpty [get]
 

Additional Inherited Members

- Events inherited from GamingIsLove.ORKFramework.IInventoryExchange
Notify Changed