Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
InventoryStorageManagerComponent.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
13 {
14  proto external IEntity GetOwner();
16  proto external bool CanInsertItem(IEntity item, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY);
17  proto external bool CanInsertItemInStorage(IEntity item, BaseInventoryStorageComponent storage, int slotID = -1);
19  proto external bool CanInsertResource(ResourceName resourceName, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY);
20  proto external bool CanInsertResourceInStorage(ResourceName resourceName, BaseInventoryStorageComponent storage, int slotID = -1);
22  proto external bool TryInsertItem(IEntity item, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY, InventoryOperationCallback cb = null);
24  proto external bool TryInsertItemInStorage(IEntity item, BaseInventoryStorageComponent storage, int slotID = -1, InventoryOperationCallback cb = null);
26  proto external bool CanReplaceItem(IEntity item, BaseInventoryStorageComponent storage, int slotID);
27  proto external bool TryReplaceItem(IEntity item, BaseInventoryStorageComponent storage, int slotID, InventoryOperationCallback cb = null);
28  proto external bool CanRemoveItemFromStorage(IEntity item, BaseInventoryStorageComponent storage);
30  proto external bool TryRemoveItemFromStorage(IEntity item, BaseInventoryStorageComponent storage, InventoryOperationCallback cb = null);
31  proto external bool CanMoveItemToStorage(IEntity item, BaseInventoryStorageComponent to, int slotID = -1);
33  proto external bool TryMoveItemToStorage(IEntity item, BaseInventoryStorageComponent to, int slotID = -1, InventoryOperationCallback cb = null);
34  proto external bool CanSwapItemStorages(IEntity itemA, IEntity itemB);
36  proto external bool TrySwapItemStorages(IEntity itemA, IEntity itemB, InventoryOperationCallback cb = null);
37  proto external bool TryDeleteItem(IEntity item, InventoryOperationCallback cb = null);
40  proto external bool TrySpawnPrefabToStorage(ResourceName prefab, BaseInventoryStorageComponent storage = null, int slotID = -1,EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY, InventoryOperationCallback cb = null);
42  proto external int GetStorages(out notnull array<BaseInventoryStorageComponent> outStorages, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY);
44  proto external int GetItems(out notnull array<IEntity> outItems);
46  proto external bool Contains(IEntity item);
48  proto external BaseInventoryStorageComponent FindStorageForItem(IEntity item, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY);
50  proto external BaseInventoryStorageComponent FindStorageForResource(ResourceName resourceName, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY);
52  proto external BaseInventoryStorageComponent FindStorageForInsert(IEntity item, BaseInventoryStorageComponent fromStorage, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY);
54  proto external BaseInventoryStorageComponent FindStorageForResourceInsert(ResourceName resourceName, BaseInventoryStorageComponent fromStorage, EStoragePurpose purpose = EStoragePurpose.PURPOSE_ANY);
56  proto external int GetDepositItemCountByEntity(IEntity entity);
58  proto external int GetDepositItemCountByResource(ResourceName resourceName);
89  proto external IEntity FindItem(InventorySearchPredicate predicate, EStoragePurpose purpose = EStoragePurpose.PURPOSE_DEPOSIT);
90  proto external int FindItems(out notnull array<IEntity> foundItems, InventorySearchPredicate predicate, EStoragePurpose purpose = EStoragePurpose.PURPOSE_DEPOSIT);
102  proto external IEntity FindItemWithComponents(array<typename> componentsQuery, EStoragePurpose purpose = EStoragePurpose.PURPOSE_DEPOSIT);
104  proto external int FindItemsWithComponents(out notnull array<IEntity> foundItems, array<typename> componentsQuery, EStoragePurpose purpose = EStoragePurpose.PURPOSE_DEPOSIT);
105  proto external int CountItem(InventorySearchPredicate predicate, EStoragePurpose purpose = EStoragePurpose.PURPOSE_DEPOSIT);
107  proto external int GetMagazineCountByWeapon(BaseWeaponComponent weapon);
109  proto external int GetMagazineCountByMuzzle(BaseMuzzleComponent pMuzzle);
110  proto external int GetGrenadesCount();
111 
112  // callbacks
113 
115  event protected void OnItemAdded(BaseInventoryStorageComponent storageOwner, IEntity item);
117  event protected void OnItemRemoved(BaseInventoryStorageComponent storageOwner, IEntity item);
119  event protected void OnStorageAdded(BaseInventoryStorageComponent storage);
121  event protected void OnStorageRemoved(BaseInventoryStorageComponent storage);
123  event protected void FillInitialStorages(out array<BaseInventoryStorageComponent> storagesToAdd);
125  event protected void FillInitialPrefabsToStore(out array<ResourceName> prefabsToSpawn);
127  event protected bool ShouldForbidRemoveByInstigator(InventoryStorageManagerComponent instigatorManager, BaseInventoryStorageComponent fromStorage, IEntity item) { return false; };
128 }
129 
InventoryOperationCallback
Definition: InventoryOperationCallback.c:12
InventoryStorageManagerComponent
Definition: InventoryStorageManagerComponent.c:12
BaseWeaponComponent
Definition: BaseWeaponComponent.c:12
EStoragePurpose
EStoragePurpose
Definition: EStoragePurpose.c:12
BaseMuzzleComponent
Definition: BaseMuzzleComponent.c:12
GameComponent
Definition: GameComponent.c:12