Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ArsenalDisplayComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_ArsenalDisplayComponentClass
 

Functions

SCR_ArsenalDisplayComponentClass SCR_ArsenalComponentClass Attribute ("0", desc:"Type of display data an arsenal item needs in in order to be displayed on this arsenal display", uiwidget:UIWidgets.SearchComboBox, enums:ParamEnumArray.FromEnum(EArsenalItemDisplayType), category:"Display settings")] protected EArsenalItemDisplayType m_eArsenalItemDisplayType
 
override void SetSupportedArsenalItemTypes (SCR_EArsenalItemType types)
 
override void SetSupportedArsenalItemModes (SCR_EArsenalItemMode modes)
 
protected void RegisterSlot (SCR_WeaponRackSlotEntity slot)
 
override void OnFactionChanged (FactionAffiliationComponent owner, Faction previousFaction, Faction newFaction)
 
override void ClearArsenal ()
 Remove every slot's item. More...
 
protected void RefreshUpdate ()
 Refresh arsenal after m_fRefreshDelay delay. More...
 
override void RefreshArsenal (SCR_Faction faction=null)
 
protected bool GetSlotValid (SCR_WeaponRackSlotEntity slotEntity, out bool isEmpty=true)
 
protected bool GetItemValidForSlot (SCR_EArsenalItemType itemType, SCR_EArsenalItemMode itemMode, SCR_EArsenalItemType supportedSlotTypes, SCR_EArsenalItemMode supportedSlotModes)
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
override protected void OnDelete (IEntity owner)
 

Variables

protected float m_fRefreshDelay
 
protected ref array< SCR_WeaponRackSlotEntitym_aSlots = {}
 

Function Documentation

◆ Attribute()

SCR_ArsenalDisplayComponentClass SCR_ArsenalComponentClass Attribute ( "0"  ,
desc:"Type of display data an arsenal item needs in in order to be displayed on this arsenal display"  ,
uiwidget:UIWidgets.  SearchComboBox,
enums:ParamEnumArray.  FromEnumEArsenalItemDisplayType,
category:"Display settings"   
)

◆ ClearArsenal()

override void ClearArsenal ( )

Remove every slot's item.

Definition at line 49 of file SCR_ArsenalDisplayComponent.c.

◆ GetItemValidForSlot()

protected bool GetItemValidForSlot ( SCR_EArsenalItemType  itemType,
SCR_EArsenalItemMode  itemMode,
SCR_EArsenalItemType  supportedSlotTypes,
SCR_EArsenalItemMode  supportedSlotModes 
)

Definition at line 137 of file SCR_ArsenalDisplayComponent.c.

◆ GetSlotValid()

protected bool GetSlotValid ( SCR_WeaponRackSlotEntity  slotEntity,
out bool  isEmpty = true 
)

Definition at line 122 of file SCR_ArsenalDisplayComponent.c.

◆ OnFactionChanged()

override void OnFactionChanged ( FactionAffiliationComponent  owner,
Faction  previousFaction,
Faction  newFaction 
)

Definition at line 41 of file SCR_ArsenalDisplayComponent.c.

◆ RefreshArsenal()

override void RefreshArsenal ( SCR_Faction  faction = null)

Definition at line 65 of file SCR_ArsenalDisplayComponent.c.

◆ RefreshUpdate()

protected void RefreshUpdate ( )

Refresh arsenal after m_fRefreshDelay delay.

Definition at line 59 of file SCR_ArsenalDisplayComponent.c.

◆ RegisterSlot()

protected void RegisterSlot ( SCR_WeaponRackSlotEntity  slot)

Definition at line 30 of file SCR_ArsenalDisplayComponent.c.

◆ SetSupportedArsenalItemModes()

override void SetSupportedArsenalItemModes ( SCR_EArsenalItemMode  modes)

Definition at line 23 of file SCR_ArsenalDisplayComponent.c.

◆ SetSupportedArsenalItemTypes()

override void SetSupportedArsenalItemTypes ( SCR_EArsenalItemType  types)

Definition at line 16 of file SCR_ArsenalDisplayComponent.c.

Variable Documentation

◆ m_aSlots

protected ref array<SCR_WeaponRackSlotEntity> m_aSlots = {}

Definition at line 13 of file SCR_ArsenalDisplayComponent.c.

◆ m_fRefreshDelay

protected float m_fRefreshDelay

Definition at line 11 of file SCR_ArsenalDisplayComponent.c.