Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CharacterInventoryStorageComponent Class Reference
Inheritance diagram for SCR_CharacterInventoryStorageComponent:

Protected Member Functions

float GetMaxLoad ()
BaseInventoryStorageComponent GetWeaponStorage ()
InventoryItemComponent GetItemFromLoadoutSlot (LoadoutAreaType eSlot)
BaseInventoryStorageComponent GetStorageFromLoadoutSlot (LoadoutAreaType eSlot)
bool HasStorageComponent (IEntity pEntity)
void GetStorages (out notnull array< SCR_UniversalInventoryStorageComponent > storagesInInventory)
void GetBlockedSlots (out notnull array< typename > blockedSlots)
SCR_UniversalInventoryStorageComponent GetStorageComponentFromEntity (IEntity pEntity)
void SetLootStorage (IEntity pOwner)
BaseInventoryStorageComponent GetLootStorage ()
bool GetIsStorageShown (notnull BaseInventoryStorageComponent pStorage)
void SetStorageAsShown (notnull BaseInventoryStorageComponent pStorage)
void SetStorageAsHidden (notnull BaseInventoryStorageComponent pStorage)
bool ItemBelongsToSlot (int iItemType, int iSlotIndex)
bool SetQuickSlotInitialized (int iSlotIndex)
int GetLastQuickSlotId (IEntity ent)
bool IsInDefaultQuickSlot (notnull IEntity item)
int StoreItemToQuickSlot (notnull IEntity pItem, int iSlotIndex=-1, bool isForced=false)
void InsertContainerIntoQuickslot (SCR_QuickslotBaseContainer container, int slotIndex)
int RemoveItemFromQuickSlot (IEntity pItem)
void RemoveItemFromQuickSlotAtIndex (int index)
array< ref SCR_QuickslotBaseContainerGetQuickSlotItems ()
array< IEntityGetQuickSlotEntitiesOnly ()
 gets all entities in quickslots, and nulls in arrays for non-entity or empty slots
IEntity GetItemFromQuickSlot (int index)
SCR_QuickslotBaseContainer GetContainerFromQuickslot (int index)
IEntity GetCurrentItem ()
IEntity GetSelectedItem ()
void UnequipCurrentItem ()
 Unequip currently held item. Not allowed while switching to another item.
void DropCurrentItem ()
 Drop currently held item. Not allowed while switching to another item.
override void OnAddedToSlot (IEntity item, int slotID)
override void OnRemovedFromSlot (IEntity item, int slotID)
void UpdateBlockedSlots (IEntity item, int slotID, bool added)
bool IsAreaBlocked (typename areaType)
void EditArmoredAttributes (IEntity item, int slotID, bool remove=false)
 Take the data from the armor attribute, and store them in map on damagemanager.
void HandleOnItemAddedToInventory (IEntity item, BaseInventoryStorageComponent storageOwner)
void HandleOnItemRemovedFromInventory (IEntity item, BaseInventoryStorageComponent storageOwner)
bool CanEquipItem_Inventory (notnull IEntity item)
bool CanUseItem_Inventory (notnull IEntity item, ESlotFunction slotFunction=ESlotFunction.TYPE_GENERIC)
bool CanUseItem (notnull IEntity item, ESlotFunction slotFunction=ESlotFunction.TYPE_GENERIC)
bool UseItem (notnull IEntity item, ESlotFunction slotFunction=ESlotFunction.TYPE_GENERIC, SCR_EUseContext context=SCR_EUseContext.FROM_QUICKSLOT)
bool CanReloadCurrentWeapon (notnull IEntity item)
bool ReloadCurrentWeapon (IEntity item)
void GetPlayersWeapons (notnull inout array< IEntity > outWeapons)
BaseCompartmentSlot GetCurrentCompartment ()
BaseWeaponComponent GetCurrentTurretWeapon ()
BaseWeaponComponent GetCurrentCharacterWeapon ()
BaseWeaponComponent GetCurrentWeapon ()
IEntity SelectNextWeapon (int maxSlot=-1)
 Select next weapon.
IEntity GetNextWeapon (int maxSlots=-1)
 Get next weapon up to specified maximum.
void InitAsPlayer (IEntity pOwner, bool pControlled)
void OnItemUsed (IEntity item, bool successful, ItemUseParameters animParams)
void OnCompartmentEntered (IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
void OnCompartmentLeft (IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
void RemoveItemsFromWeaponQuickSlots ()
int GetTurretWeaponsList (BaseCompartmentSlot compartment, out array< IEntity > weaponsList)
int GetTurretWeaponSlots (BaseCompartmentSlot compartment, out array< WeaponSlotComponent > weaponSlots)
int GetEntityIndexInQuickslots (notnull IEntity entity)
int GetFirstSlotIndexOf (ECommonItemType type)
void InitCharacterPerceivedOutfitData (notnull SCR_CharacterFactionAffiliationComponent characterAffiliationComponent)
void UpdatePerceivedFaction (bool addedToSlot, IEntity item, bool updateFaction=true)

Static Protected Member Functions

static int GetItemType (notnull IEntity pItem)
static int GetDefaultQuickSlot (notnull IEntity item)

Protected Attributes

float m_fMaxWeight
float m_fMaxVolume
ref array< ref SCR_QuickslotBaseContainerm_aQuickSlots = { null, null, null, null, null, null, null, null, null, null }
ref map< IEntity, intm_mSlotHistory = new map<IEntity, int>()
ref array< IEntitym_aWeaponQuickSlotsStorage = {}
ref array< intm_aQuickSlotsHistory = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ref set< intm_aQuickSlotsInitalized = new set<int>()
ref array< typenamem_aBlockedSlots = {}
ref array< BaseInventoryStorageComponent > m_aStoragesInStorageList = {}
SCR_CompartmentAccessComponent m_CompartmentAccessComp
BaseInventoryStorageComponent m_WeaponStorage
SCR_CharacterFactionAffiliationComponent m_CharacterAffiliationComponent
ref SCR_InvEquipCB m_Callback = new SCR_InvEquipCB()

Static Protected Attributes

static const int GADGET_OFFSET = 9999
static const int TURRET_WEAPON_SWITCH_SLOTS = 4
static const int INFANTRY_WEAPON_SWITCH_SLOTS = 2
static const ref array< ref array< int > > DEFAULT_QUICK_SLOTS
static const ref array< EWeaponTypeWEAPON_TYPES_THROWABLE = { EWeaponType.WT_FRAGGRENADE, EWeaponType.WT_SMOKEGRENADE }

Detailed Description

Definition at line 89 of file SCR_CharacterInventoryStorageComponent.c.

Member Function Documentation

◆ CanEquipItem_Inventory()

bool SCR_CharacterInventoryStorageComponent::CanEquipItem_Inventory ( notnull IEntity item)
inlineprotected

Checks if provided item can be equiped while in the inventory menu

Returns
true if this item can be equiped, otherwise false

Definition at line 778 of file SCR_CharacterInventoryStorageComponent.c.

◆ CanReloadCurrentWeapon()

bool SCR_CharacterInventoryStorageComponent::CanReloadCurrentWeapon ( notnull IEntity item)
inlineprotected

Definition at line 1127 of file SCR_CharacterInventoryStorageComponent.c.

◆ CanUseItem()

bool SCR_CharacterInventoryStorageComponent::CanUseItem ( notnull IEntity item,
ESlotFunction slotFunction = ESlotFunction.TYPE_GENERIC )
inlineprotected
Parameters
[in]item
[in]slotFunction
Returns

Definition at line 890 of file SCR_CharacterInventoryStorageComponent.c.

◆ CanUseItem_Inventory()

bool SCR_CharacterInventoryStorageComponent::CanUseItem_Inventory ( notnull IEntity item,
ESlotFunction slotFunction = ESlotFunction.TYPE_GENERIC )
inlineprotected

Definition at line 823 of file SCR_CharacterInventoryStorageComponent.c.

◆ DropCurrentItem()

void SCR_CharacterInventoryStorageComponent::DropCurrentItem ( )
inlineprotected

Drop currently held item. Not allowed while switching to another item.

Definition at line 590 of file SCR_CharacterInventoryStorageComponent.c.

◆ EditArmoredAttributes()

void SCR_CharacterInventoryStorageComponent::EditArmoredAttributes ( IEntity item,
int slotID,
bool remove = false )
inlineprotected

Take the data from the armor attribute, and store them in map on damagemanager.

Definition at line 737 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetBlockedSlots()

void SCR_CharacterInventoryStorageComponent::GetBlockedSlots ( out notnull array< typename > blockedSlots)
inlineprotected
Parameters
[out]blockedSlots

Definition at line 219 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetContainerFromQuickslot()

SCR_QuickslotBaseContainer SCR_CharacterInventoryStorageComponent::GetContainerFromQuickslot ( int index)
inlineprotected
Parameters
[in]index
Returns

Definition at line 525 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetCurrentCharacterWeapon()

BaseWeaponComponent SCR_CharacterInventoryStorageComponent::GetCurrentCharacterWeapon ( )
inlineprotected

Definition at line 1224 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetCurrentCompartment()

BaseCompartmentSlot SCR_CharacterInventoryStorageComponent::GetCurrentCompartment ( )
inlineprotected

Definition at line 1192 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetCurrentItem()

IEntity SCR_CharacterInventoryStorageComponent::GetCurrentItem ( )
inlineprotected
Returns
currently held item. If character holds gadget, gadget is returned, otherwise current weapon.

Definition at line 535 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetCurrentTurretWeapon()

BaseWeaponComponent SCR_CharacterInventoryStorageComponent::GetCurrentTurretWeapon ( )
inlineprotected

Definition at line 1206 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetCurrentWeapon()

BaseWeaponComponent SCR_CharacterInventoryStorageComponent::GetCurrentWeapon ( )
inlineprotected

Definition at line 1246 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetDefaultQuickSlot()

int SCR_CharacterInventoryStorageComponent::GetDefaultQuickSlot ( notnull IEntity item)
inlinestaticprotected
Parameters
[in]item
Returns

Definition at line 344 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetEntityIndexInQuickslots()

int SCR_CharacterInventoryStorageComponent::GetEntityIndexInQuickslots ( notnull IEntity entity)
inlineprotected

Definition at line 1624 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetFirstSlotIndexOf()

int SCR_CharacterInventoryStorageComponent::GetFirstSlotIndexOf ( ECommonItemType type)
inlineprotected

Definition at line 1640 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetIsStorageShown()

bool SCR_CharacterInventoryStorageComponent::GetIsStorageShown ( notnull BaseInventoryStorageComponent pStorage)
inlineprotected
Parameters
[in]pStorage
Returns
the visibility state of the adequate UI container - if the storage was previously shown in the inventory

Definition at line 258 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetItemFromLoadoutSlot()

InventoryItemComponent SCR_CharacterInventoryStorageComponent::GetItemFromLoadoutSlot ( LoadoutAreaType eSlot)
inlineprotected
Parameters
[in]eSlot
Returns

Definition at line 170 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetItemFromQuickSlot()

IEntity SCR_CharacterInventoryStorageComponent::GetItemFromQuickSlot ( int index)
inlineprotected
Parameters
[in]index
Returns

Definition at line 510 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetItemType()

int SCR_CharacterInventoryStorageComponent::GetItemType ( notnull IEntity pItem)
inlinestaticprotected
Parameters
[in]pItem
Returns

Definition at line 283 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetLastQuickSlotId()

int SCR_CharacterInventoryStorageComponent::GetLastQuickSlotId ( IEntity ent)
inlineprotected
Parameters
[in]ent
Returns

Definition at line 334 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetLootStorage()

BaseInventoryStorageComponent SCR_CharacterInventoryStorageComponent::GetLootStorage ( )
inlineprotected
Returns

Definition at line 250 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetMaxLoad()

float SCR_CharacterInventoryStorageComponent::GetMaxLoad ( )
inlineprotected
Returns

Definition at line 152 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetNextWeapon()

IEntity SCR_CharacterInventoryStorageComponent::GetNextWeapon ( int maxSlots = -1)
inlineprotected

Get next weapon up to specified maximum.

Definition at line 1276 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetPlayersWeapons()

void SCR_CharacterInventoryStorageComponent::GetPlayersWeapons ( notnull inout array< IEntity > outWeapons)
inlineprotected

Definition at line 1176 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetQuickSlotEntitiesOnly()

array< IEntity > SCR_CharacterInventoryStorageComponent::GetQuickSlotEntitiesOnly ( )
inlineprotected

gets all entities in quickslots, and nulls in arrays for non-entity or empty slots

Definition at line 487 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetQuickSlotItems()

array< ref SCR_QuickslotBaseContainer > SCR_CharacterInventoryStorageComponent::GetQuickSlotItems ( )
inlineprotected
Returns

Definition at line 480 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetSelectedItem()

IEntity SCR_CharacterInventoryStorageComponent::GetSelectedItem ( )
inlineprotected
Returns
selected item. If there is no active switching, currently held item is returned instead.

Definition at line 558 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetStorageComponentFromEntity()

SCR_UniversalInventoryStorageComponent SCR_CharacterInventoryStorageComponent::GetStorageComponentFromEntity ( IEntity pEntity)
inlineprotected
Parameters
[in]pEntity
Returns
the item inventory component

Definition at line 227 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetStorageFromLoadoutSlot()

BaseInventoryStorageComponent SCR_CharacterInventoryStorageComponent::GetStorageFromLoadoutSlot ( LoadoutAreaType eSlot)
inlineprotected
Parameters
[in]eSlot
Returns

Definition at line 189 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetStorages()

void SCR_CharacterInventoryStorageComponent::GetStorages ( out notnull array< SCR_UniversalInventoryStorageComponent > storagesInInventory)
inlineprotected
Parameters
[out]storagesInInventory
Returns
all topmost storages

Definition at line 203 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetTurretWeaponsList()

int SCR_CharacterInventoryStorageComponent::GetTurretWeaponsList ( BaseCompartmentSlot compartment,
out array< IEntity > weaponsList )
inlineprotected

Definition at line 1595 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetTurretWeaponSlots()

int SCR_CharacterInventoryStorageComponent::GetTurretWeaponSlots ( BaseCompartmentSlot compartment,
out array< WeaponSlotComponent > weaponSlots )
inlineprotected

Definition at line 1609 of file SCR_CharacterInventoryStorageComponent.c.

◆ GetWeaponStorage()

BaseInventoryStorageComponent SCR_CharacterInventoryStorageComponent::GetWeaponStorage ( )
inlineprotected
Returns

Definition at line 159 of file SCR_CharacterInventoryStorageComponent.c.

◆ HandleOnItemAddedToInventory()

void SCR_CharacterInventoryStorageComponent::HandleOnItemAddedToInventory ( IEntity item,
BaseInventoryStorageComponent storageOwner )
inlineprotected
Parameters
[in]item
[in]storageOwner

Definition at line 757 of file SCR_CharacterInventoryStorageComponent.c.

◆ HandleOnItemRemovedFromInventory()

void SCR_CharacterInventoryStorageComponent::HandleOnItemRemovedFromInventory ( IEntity item,
BaseInventoryStorageComponent storageOwner )
inlineprotected
Parameters
[in]item
[in]storageOwner

Definition at line 768 of file SCR_CharacterInventoryStorageComponent.c.

◆ HasStorageComponent()

bool SCR_CharacterInventoryStorageComponent::HasStorageComponent ( IEntity pEntity)
inlineprotected

Definition at line 195 of file SCR_CharacterInventoryStorageComponent.c.

◆ InitAsPlayer()

void SCR_CharacterInventoryStorageComponent::InitAsPlayer ( IEntity pOwner,
bool pControlled )
inlineprotected
Parameters
[in]pOwner
[in]pControlled

Definition at line 1341 of file SCR_CharacterInventoryStorageComponent.c.

◆ InitCharacterPerceivedOutfitData()

void SCR_CharacterInventoryStorageComponent::InitCharacterPerceivedOutfitData ( notnull SCR_CharacterFactionAffiliationComponent characterAffiliationComponent)
inlineprotected

Called by SCR_CharacterFactionAffiliationComponent on init. Sets the m_CharacterAffiliationComponent as well as making sure that the items are added to the outfit values of the faction affiliation comp

Parameters
[in]characterAffiliationComponentCharacter Faction Affiliation component to set as a reference

Definition at line 1670 of file SCR_CharacterInventoryStorageComponent.c.

◆ InsertContainerIntoQuickslot()

void SCR_CharacterInventoryStorageComponent::InsertContainerIntoQuickslot ( SCR_QuickslotBaseContainer container,
int slotIndex )
inlineprotected

Definition at line 449 of file SCR_CharacterInventoryStorageComponent.c.

◆ IsAreaBlocked()

bool SCR_CharacterInventoryStorageComponent::IsAreaBlocked ( typename areaType )
inlineprotected
Parameters
[in]areaType
Returns

Definition at line 730 of file SCR_CharacterInventoryStorageComponent.c.

◆ IsInDefaultQuickSlot()

bool SCR_CharacterInventoryStorageComponent::IsInDefaultQuickSlot ( notnull IEntity item)
inlineprotected
Parameters
[in]item
Returns

Definition at line 359 of file SCR_CharacterInventoryStorageComponent.c.

◆ ItemBelongsToSlot()

bool SCR_CharacterInventoryStorageComponent::ItemBelongsToSlot ( int iItemType,
int iSlotIndex )
inlineprotected
Parameters
[in]iItemType
[in]iSlotIndex
Returns

Definition at line 320 of file SCR_CharacterInventoryStorageComponent.c.

◆ OnAddedToSlot()

override void SCR_CharacterInventoryStorageComponent::OnAddedToSlot ( IEntity item,
int slotID )
inlineprotected

Called when item is added to slot, update armored attributes when item with armorData is equipped

Parameters
[in]item
[in]slotID

Definition at line 648 of file SCR_CharacterInventoryStorageComponent.c.

◆ OnCompartmentEntered()

void SCR_CharacterInventoryStorageComponent::OnCompartmentEntered ( IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
inlineprotected

SCR_CompartmentAccessComponent event

Parameters
[in]targetEntity
[in]manager
[in]mgrID
[in]slotID
[in]move

Definition at line 1523 of file SCR_CharacterInventoryStorageComponent.c.

◆ OnCompartmentLeft()

void SCR_CharacterInventoryStorageComponent::OnCompartmentLeft ( IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
inlineprotected

SCR_CompartmentAccessComponent event

Parameters
[in]targetEntity
[in]manager
[in]mgrID
[in]slotID
[in]move

Definition at line 1537 of file SCR_CharacterInventoryStorageComponent.c.

◆ OnItemUsed()

void SCR_CharacterInventoryStorageComponent::OnItemUsed ( IEntity item,
bool successful,
ItemUseParameters animParams )
inlineprotected

Definition at line 1410 of file SCR_CharacterInventoryStorageComponent.c.

◆ OnRemovedFromSlot()

override void SCR_CharacterInventoryStorageComponent::OnRemovedFromSlot ( IEntity item,
int slotID )
inlineprotected

Definition at line 685 of file SCR_CharacterInventoryStorageComponent.c.

◆ ReloadCurrentWeapon()

bool SCR_CharacterInventoryStorageComponent::ReloadCurrentWeapon ( IEntity item)
inlineprotected

Definition at line 1159 of file SCR_CharacterInventoryStorageComponent.c.

◆ RemoveItemFromQuickSlot()

int SCR_CharacterInventoryStorageComponent::RemoveItemFromQuickSlot ( IEntity pItem)
inlineprotected
Parameters
[in]pItem
Returns

Definition at line 460 of file SCR_CharacterInventoryStorageComponent.c.

◆ RemoveItemFromQuickSlotAtIndex()

void SCR_CharacterInventoryStorageComponent::RemoveItemFromQuickSlotAtIndex ( int index)
inlineprotected
Parameters
[in]index

Definition at line 472 of file SCR_CharacterInventoryStorageComponent.c.

◆ RemoveItemsFromWeaponQuickSlots()

void SCR_CharacterInventoryStorageComponent::RemoveItemsFromWeaponQuickSlots ( )
inlineprotected

Definition at line 1586 of file SCR_CharacterInventoryStorageComponent.c.

◆ SelectNextWeapon()

IEntity SCR_CharacterInventoryStorageComponent::SelectNextWeapon ( int maxSlot = -1)
inlineprotected

Select next weapon.

Definition at line 1257 of file SCR_CharacterInventoryStorageComponent.c.

◆ SetLootStorage()

void SCR_CharacterInventoryStorageComponent::SetLootStorage ( IEntity pOwner)
inlineprotected
Parameters
[in]pOwner

Definition at line 237 of file SCR_CharacterInventoryStorageComponent.c.

◆ SetQuickSlotInitialized()

bool SCR_CharacterInventoryStorageComponent::SetQuickSlotInitialized ( int iSlotIndex)
inlineprotected

Definition at line 326 of file SCR_CharacterInventoryStorageComponent.c.

◆ SetStorageAsHidden()

void SCR_CharacterInventoryStorageComponent::SetStorageAsHidden ( notnull BaseInventoryStorageComponent pStorage)
inlineprotected
Parameters
[in]pStorage

Definition at line 273 of file SCR_CharacterInventoryStorageComponent.c.

◆ SetStorageAsShown()

void SCR_CharacterInventoryStorageComponent::SetStorageAsShown ( notnull BaseInventoryStorageComponent pStorage)
inlineprotected
Parameters
[in]pStorage

Definition at line 265 of file SCR_CharacterInventoryStorageComponent.c.

◆ StoreItemToQuickSlot()

int SCR_CharacterInventoryStorageComponent::StoreItemToQuickSlot ( notnull IEntity pItem,
int iSlotIndex = -1,
bool isForced = false )
inlineprotected
Parameters
[in]pItem
[in]iSlotIndex
[in]isForced
Returns

Definition at line 378 of file SCR_CharacterInventoryStorageComponent.c.

◆ UnequipCurrentItem()

void SCR_CharacterInventoryStorageComponent::UnequipCurrentItem ( )
inlineprotected

Unequip currently held item. Not allowed while switching to another item.

Definition at line 569 of file SCR_CharacterInventoryStorageComponent.c.

◆ UpdateBlockedSlots()

void SCR_CharacterInventoryStorageComponent::UpdateBlockedSlots ( IEntity item,
int slotID,
bool added )
inlineprotected

Definition at line 698 of file SCR_CharacterInventoryStorageComponent.c.

◆ UpdatePerceivedFaction()

void SCR_CharacterInventoryStorageComponent::UpdatePerceivedFaction ( bool addedToSlot,
IEntity item,
bool updateFaction = true )
inlineprotected

Definition at line 1692 of file SCR_CharacterInventoryStorageComponent.c.

◆ UseItem()

bool SCR_CharacterInventoryStorageComponent::UseItem ( notnull IEntity item,
ESlotFunction slotFunction = ESlotFunction.TYPE_GENERIC,
SCR_EUseContext context = SCR_EUseContext.FROM_QUICKSLOT )
inlineprotected
Parameters
[in]item
[in]slotFunction
Returns

Definition at line 950 of file SCR_CharacterInventoryStorageComponent.c.

Member Data Documentation

◆ DEFAULT_QUICK_SLOTS

const ref array<ref array<int> > SCR_CharacterInventoryStorageComponent::DEFAULT_QUICK_SLOTS
staticprotected
Initial value:
= { { EWeaponType.WT_RIFLE, EWeaponType.WT_SNIPERRIFLE, EWeaponType.WT_MACHINEGUN },
{ EWeaponType.WT_RIFLE, EWeaponType.WT_ROCKETLAUNCHER, EWeaponType.WT_GRENADELAUNCHER, EWeaponType.WT_SNIPERRIFLE, EWeaponType.WT_MACHINEGUN },
{ EWeaponType.WT_HANDGUN },
{ EWeaponType.WT_FRAGGRENADE },
{ EWeaponType.WT_SMOKEGRENADE },
{ EGadgetType.CONSUMABLE + GADGET_OFFSET + SCR_EConsumableType.BANDAGE },
{ EGadgetType.CONSUMABLE + GADGET_OFFSET + SCR_EConsumableType.TOURNIQUET },
{ EGadgetType.CONSUMABLE + GADGET_OFFSET + SCR_EConsumableType.MORPHINE, EGadgetType.CONSUMABLE + GADGET_OFFSET + SCR_EConsumableType.SALINE },
{ EGadgetType.RADIO + GADGET_OFFSET },
{ EGadgetType.BUILDING_TOOL + GADGET_OFFSET }
}
SCR_EConsumableType
Type of consumable gadget.
EWeaponType
Definition EWeaponType.c:13

Definition at line 123 of file SCR_CharacterInventoryStorageComponent.c.

◆ GADGET_OFFSET

const int SCR_CharacterInventoryStorageComponent::GADGET_OFFSET = 9999
staticprotected

Definition at line 108 of file SCR_CharacterInventoryStorageComponent.c.

◆ INFANTRY_WEAPON_SWITCH_SLOTS

const int SCR_CharacterInventoryStorageComponent::INFANTRY_WEAPON_SWITCH_SLOTS = 2
staticprotected

Definition at line 110 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_aBlockedSlots

ref array<typename> SCR_CharacterInventoryStorageComponent::m_aBlockedSlots = {}
protected

Definition at line 137 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_aQuickSlots

ref array<ref SCR_QuickslotBaseContainer> SCR_CharacterInventoryStorageComponent::m_aQuickSlots = { null, null, null, null, null, null, null, null, null, null }
protected

Definition at line 102 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_aQuickSlotsHistory

ref array<int> SCR_CharacterInventoryStorageComponent::m_aQuickSlotsHistory = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
protected

Definition at line 105 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_aQuickSlotsInitalized

ref set<int> SCR_CharacterInventoryStorageComponent::m_aQuickSlotsInitalized = new set<int>()
protected

Definition at line 106 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_aStoragesInStorageList

ref array<BaseInventoryStorageComponent> SCR_CharacterInventoryStorageComponent::m_aStoragesInStorageList = {}
protected

Definition at line 138 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_aWeaponQuickSlotsStorage

ref array<IEntity> SCR_CharacterInventoryStorageComponent::m_aWeaponQuickSlotsStorage = {}
protected

Definition at line 104 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_Callback

ref SCR_InvEquipCB SCR_CharacterInventoryStorageComponent::m_Callback = new SCR_InvEquipCB()
protected

Definition at line 143 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_CharacterAffiliationComponent

SCR_CharacterFactionAffiliationComponent SCR_CharacterInventoryStorageComponent::m_CharacterAffiliationComponent
protected

Definition at line 141 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_CompartmentAccessComp

SCR_CompartmentAccessComponent SCR_CharacterInventoryStorageComponent::m_CompartmentAccessComp
protected

Definition at line 139 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_fMaxVolume

float SCR_CharacterInventoryStorageComponent::m_fMaxVolume
protected

Definition at line 97 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_fMaxWeight

float SCR_CharacterInventoryStorageComponent::m_fMaxWeight
protected

Definition at line 93 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_mSlotHistory

ref map<IEntity, int> SCR_CharacterInventoryStorageComponent::m_mSlotHistory = new map<IEntity, int>()
protected

Definition at line 103 of file SCR_CharacterInventoryStorageComponent.c.

◆ m_WeaponStorage

BaseInventoryStorageComponent SCR_CharacterInventoryStorageComponent::m_WeaponStorage
protected

Definition at line 140 of file SCR_CharacterInventoryStorageComponent.c.

◆ TURRET_WEAPON_SWITCH_SLOTS

const int SCR_CharacterInventoryStorageComponent::TURRET_WEAPON_SWITCH_SLOTS = 4
staticprotected

Definition at line 109 of file SCR_CharacterInventoryStorageComponent.c.

◆ WEAPON_TYPES_THROWABLE

const ref array<EWeaponType> SCR_CharacterInventoryStorageComponent::WEAPON_TYPES_THROWABLE = { EWeaponType.WT_FRAGGRENADE, EWeaponType.WT_SMOKEGRENADE }
staticprotected

Definition at line 145 of file SCR_CharacterInventoryStorageComponent.c.


The documentation for this class was generated from the following file: