Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ItemOutfitFactionComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_ItemOutfitFactionComponentClass
class  SCR_OutfitFactionDataHolder

Functions

SCR_ItemOutfitFactionComponentClass ScriptComponentClass BaseContainerProps ()
SCR_ItemOutfitFactionComponentClass ScriptComponentClass SCR_BaseContainerTitleFieldWithValue ("m_AffiliatedFactionKey", "m_iOutfitFactionValue", "%1: %2", "10")
class SCR_OutfitFactionDataHolder Attribute ()] protected ref SCR_OutfitFactionDataHolder m_OutfitDataHolder
void Init (notnull FactionManager factionManager)
 Init the faction outfit data array.
int GetOutfitFactionDataArrayCount ()
int GetOutfitFactionDataArray (out notnull array< SCR_OutfitFactionData > outfitDataArray)
SCR_OutfitFactionData GetOutfitFactionData (FactionKey faction)
SCR_OutfitFactionData GetOutfitFactionData (notnull Faction faction)
bool IsValid ()
int GetOutfitValueOfFaction (notnull Faction faction)
void OnAddedToSlot (notnull SCR_CharacterFactionAffiliationComponent characterFactionAffiliationComponent, bool updateFaction=true)
void OnRemovedFromSlot (notnull SCR_CharacterFactionAffiliationComponent characterFactionAffiliationComponent, bool updateFaction=true)
void Init ()
override void EOnInit (IEntity owner)
override void OnPostInit (IEntity owner)
 Editable Mine.

Variables

ref array< ref SCR_OutfitFactionData > m_aOutfitFactionData
bool m_bInitCalled

Function Documentation

◆ BaseContainerProps()

◆ GetOutfitFactionData() [1/2]

SCR_OutfitFactionData Attribute::GetOutfitFactionData ( FactionKey faction)
protected

Get specific outfit data of faction (Will return the first valid found) param[in] faction Faction Key to find data of return Found data (Can be null)

Definition at line 46 of file SCR_ItemOutfitFactionComponent.c.

◆ GetOutfitFactionData() [2/2]

SCR_OutfitFactionData Attribute::GetOutfitFactionData ( notnull Faction faction)
protected

Get specific outfit data of faction (Will return the first valid found) param[in] faction Faction to find data of return Found data (Can be null)

Definition at line 67 of file SCR_ItemOutfitFactionComponent.c.

◆ GetOutfitFactionDataArray()

int GetOutfitFactionDataArray ( out notnull array< SCR_OutfitFactionData > outfitValues)
protected

Get Outfit data array

Parameters
[in]outfitValuesArray to add data to (Will be cleared)
Returns
Array Count

Definition at line 30 of file SCR_ItemOutfitFactionComponent.c.

◆ GetOutfitFactionDataArrayCount()

int Attribute::GetOutfitFactionDataArrayCount ( )
protected
Returns
Count of outfit data array

Definition at line 21 of file SCR_ItemOutfitFactionComponent.c.

◆ GetOutfitValueOfFaction()

int GetOutfitValueOfFaction ( notnull Faction faction)
protected

Get specific outfit value of faction (Will return the first valid found) param[in] faction Faction to find data of return Found value (Can be null)

Definition at line 173 of file SCR_ItemOutfitFactionComponent.c.

◆ Init() [1/2]

void Init ( )
protected

Definition at line 221 of file SCR_ItemOutfitFactionComponent.c.

◆ Init() [2/2]

void Attribute::Init ( notnull FactionManager factionManager)
protected

Init the faction outfit data array.

Definition at line 5 of file SCR_ItemOutfitFactionComponent.c.

◆ IsValid()

bool IsValid ( )
protected
Returns
True if data on component is valid

Definition at line 144 of file SCR_ItemOutfitFactionComponent.c.

◆ OnAddedToSlot()

void OnAddedToSlot ( notnull SCR_CharacterFactionAffiliationComponent characterFactionAffiliationComponent,
bool updateFaction = true )
protected

Called when an item with this component is added to a character inventory param[in] characterFactionAffiliationComponent The Faction component to add itself to param[in] updateFaction If the faction should be updated and replicated when the item is added (Set false and do a recalculation in the end if it is multiple at one)

Definition at line 194 of file SCR_ItemOutfitFactionComponent.c.

◆ OnRemovedFromSlot()

void OnRemovedFromSlot ( notnull SCR_CharacterFactionAffiliationComponent characterFactionAffiliationComponent,
bool updateFaction = true )
protected

Called when an item with this component is removed from a character inventory param[in] characterFactionAffiliationComponent The Faction component to remove itself from param[in] updateFaction If the faction should be updated and replicated when the item is removed (Set false and do a recalculation in the end if it is multiple at one)

Definition at line 209 of file SCR_ItemOutfitFactionComponent.c.

◆ SCR_BaseContainerTitleFieldWithValue()

SCR_ItemOutfitFactionComponentClass ScriptComponentClass SCR_BaseContainerTitleFieldWithValue ( "m_AffiliatedFactionKey" ,
"m_iOutfitFactionValue" ,
"%1: %2" ,
"10"  )

Init to set the affiliated faction

Returns
Faction key associated with the faction
Value associated with the faction
Faction set on init using the m_AffiliatedFactionKey for quicker getting of the faction

Definition at line 6 of file SCR_ItemOutfitFactionComponent.c.

Variable Documentation

◆ m_aOutfitFactionData

ref array<ref SCR_OutfitFactionData> m_aOutfitFactionData
protected

Definition at line 1 of file SCR_ItemOutfitFactionComponent.c.

◆ m_bInitCalled

bool m_bInitCalled
protected

Definition at line 140 of file SCR_ItemOutfitFactionComponent.c.