Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ItemOutfitFactionComponent Interface Reference
Inheritance diagram for SCR_ItemOutfitFactionComponent:

Public Member Functions

bool IsValid ()
 
int GetOutfitFactionDataArray (out notnull array< SCR_OutfitFactionData > outfitValues)
 Get Outfit data array.
 
int GetOutfitValueOfFaction (notnull Faction faction)
 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)
 
void OnAddedToSlot (notnull SCR_CharacterFactionAffiliationComponent characterFactionAffiliationComponent, bool updateFaction=true)
 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)
 
void OnRemovedFromSlot (notnull SCR_CharacterFactionAffiliationComponent characterFactionAffiliationComponent, bool updateFaction=true)
 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)
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 

Protected Member Functions

void Init ()
 

Protected Attributes

ref SCR_OutfitFactionDataHolder m_OutfitDataHolder
 
bool m_bInitCalled
 

Member Function Documentation

◆ EOnInit()

override void SCR_ItemOutfitFactionComponent.EOnInit ( IEntity owner)

◆ GetOutfitFactionDataArray()

int SCR_ItemOutfitFactionComponent.GetOutfitFactionDataArray ( out notnull array< SCR_OutfitFactionData > outfitValues)

Get Outfit data array.

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

◆ GetOutfitValueOfFaction()

int SCR_ItemOutfitFactionComponent.GetOutfitValueOfFaction ( notnull Faction faction)

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)

◆ Init()

void SCR_ItemOutfitFactionComponent.Init ( )
protected

◆ IsValid()

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

◆ OnAddedToSlot()

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

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)

◆ OnPostInit()

override void SCR_ItemOutfitFactionComponent.OnPostInit ( IEntity owner)

◆ OnRemovedFromSlot()

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

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)

Member Data Documentation

◆ m_bInitCalled

bool SCR_ItemOutfitFactionComponent.m_bInitCalled
protected

◆ m_OutfitDataHolder

ref SCR_OutfitFactionDataHolder SCR_ItemOutfitFactionComponent.m_OutfitDataHolder
protected

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