61 proto external sealed
int GetAll(out notnull array<IEntity> outItems,
bool includeChildComponents =
true);
70 proto external
void GetOwnedItems(out notnull array<InventoryItemComponent> outItemsComponents,
bool includeChildComponents =
true);
79 proto external
bool GetOwnedStorages(out notnull array<BaseInventoryStorageComponent> outStorages,
int depth,
bool includeHierarchy);
ResourceName resourceName
SCR_WorkshopItem GetItem()
override bool CanStoreItem(IEntity item, int slotID)
IEntity GetSlot(IEntity occupant)
array< ref SCR_TaskFinishEntry > GetAll()
enum EVehicleType IEntity
SCR_EquipmentStorageComponentClass EquipmentStorageComponentClass ShouldPreviewAttachedItems()
Equipment storage are slots which are part of their parent entity but not taking up the standard carg...
void OnRemovedFromSlot(IEntity item, int slotID)
proto external vector GetMaxDimensionCapacity()
BaseInventoryStorageComponentClass InventoryItemComponentClass SetupSlotHooks(InventoryStorageSlot ownedSlot, int slotID)
ref BaseInventoryTask InsertItem(IEntity item, int slotID, bool justSpawned)
proto external void GetOwnedItems(out notnull array< InventoryItemComponent > outItemsComponents, bool includeChildComponents=true)
Fills array with attached items, optionally including items from child storage components.
proto external int GetEstimatedCountFitForResource(ResourceName resourceName)
Get an estimate of how many times the resource can fit in the inventory.
proto external bool PerformVolumeValidationForResource(ResourceName resourceName, bool includeDimensionValidation=true)
Performs prefab volume and (optionally) dimension validation.
proto external int GetEstimatedCountFitForItem(IEntity item)
Get an estimate of how many times the item can fit in the inventory.
event bool CanStoreResource(ResourceName resourceName, int slotID)
Implemented logics for can insert here, Manager will provide slotID of -1 in case slot is irrelevant.
proto external int GetSlotsCount()
Returns the number of slots in this storage.
proto external float GetWeightFromResource(ResourceName resourceName)
Get the weight of a prefab.
proto external bool PerformDimensionValidation(IEntity item)
Performs dimension validation.
proto external float GetMaxVolumeCapacity()
event bool CanReplaceItem(IEntity nextItem, int slotID)
Implemented logics for can replace to nextItem at slotID,.
proto external bool PerformVolumeValidation(IEntity item, bool includeDimensionValidation=true)
Performs item volume and (optionally) dimension validation.
int GetSlotsCountScr()
Should Return slots count.
event bool OnOverrideCanStoreItem()
InventoryStorageSlot GetSlotScr(int slotID)
Should Return slot for specified id.
void OnAddedToSlot(IEntity item, int slotID)
void UpdateUI()
Virtual method for updating the UI when an item is removed/added.
void ReleaseSlotHooks(InventoryStorageSlot ownedSlot)
event bool OnOverrideCanReplaceItem()
proto external sealed InventoryStorageSlot FindItemSlot(IEntity item)
proto external sealed EStoragePurpose GetPurpose()
proto external bool GetOwnedStorages(out notnull array< BaseInventoryStorageComponent > outStorages, int depth, bool includeHierarchy)
void OnManagerChanged(InventoryStorageManagerComponent manager)
event bool OnOverrideCanRemoveItem()
InventoryStorageSlot GetEmptySlotForItem(IEntity item)
Usually any slot that item can be inserted to.
event bool CanRemoveItem(IEntity item)
Implemented logics for can remove here,.
proto external float GetOccupiedSpace()
Returns amount of space occupied by attached items.
event bool OnOverrideCanStoreResource()
proto external bool IsCompartment()
does current storage serves as a compartment of other storage
proto external InventoryStorageSlot FindSuitableSlotForItem(IEntity item)
proto bool RemoveItem(T value)
proto bool Contains(T value)