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

Protected Member Functions

bool IsEnabled ()
bool IsValidForRandomization (IEntity entity, SCR_ExtendedIdentityComponent extendedIdentity)
int GetWeight ()
bool IsValidFaction (string factionKey)
bool IsValidFaction (int factionIndex)
string GetBioGroupID ()
SCR_IdentityBio GetIdentityBio (IEntity entity, int index)
void AssignRandomAvailableBio (RandomGenerator randomizer, IEntity entity, out int index, out SCR_IdentityBio bio)
SCR_IdentityBio OnCharacterBioAssigned (IEntity entity, int index)
void ResetAvailable ()
 Resets all available indexes. Including Unique (Server Only).
void SCR_IdentityBioGroupConfig ()
void SetAdditionalWeight ()
void DelayedInit ()

Protected Attributes

bool m_bEnabled
string m_sBioGroupID
int m_iWeight
float m_fEntryAmountWeightMulti
ref array< stringm_aNeedsFaction
ref array< ref SCR_IdentityBiom_aIdentityList
ref array< intm_aNeedsFactionIndexes
ref array< intm_aAvailableIdentityBioIndexList = {}
ref array< intm_aUnavailableIdentityBioIndexList = {}

Detailed Description

Definition at line 2 of file SCR_IdentityBioGroupConfig.c.

Constructor & Destructor Documentation

◆ SCR_IdentityBioGroupConfig()

void SCR_IdentityBioGroupConfig::SCR_IdentityBioGroupConfig ( )
inlineprotected

Definition at line 178 of file SCR_IdentityBioGroupConfig.c.

Member Function Documentation

◆ AssignRandomAvailableBio()

void SCR_IdentityBioGroupConfig::AssignRandomAvailableBio ( RandomGenerator randomizer,
IEntity entity,
out int index,
out SCR_IdentityBio bio )
inlineprotected

Get an random available bio (Server Only) Also removes the bio from available list

Parameters
[out]indexBio index
[out]bioBio reference

Definition at line 108 of file SCR_IdentityBioGroupConfig.c.

◆ DelayedInit()

void SCR_IdentityBioGroupConfig::DelayedInit ( )
inlineprotected

Definition at line 203 of file SCR_IdentityBioGroupConfig.c.

◆ GetBioGroupID()

string SCR_IdentityBioGroupConfig::GetBioGroupID ( )
inlineprotected

Get bio group ID

Returns
Bio groupID

Definition at line 85 of file SCR_IdentityBioGroupConfig.c.

◆ GetIdentityBio()

SCR_IdentityBio SCR_IdentityBioGroupConfig::GetIdentityBio ( IEntity entity,
int index )
inlineprotected

Get an bio from Index

Parameters
[in]entityThe entity that has the identity
[in]indexIndex of bio
Returns
Bio

Definition at line 95 of file SCR_IdentityBioGroupConfig.c.

◆ GetWeight()

int SCR_IdentityBioGroupConfig::GetWeight ( )
inlineprotected

Return randomization weight

Returns
randomization weight

Definition at line 53 of file SCR_IdentityBioGroupConfig.c.

◆ IsEnabled()

bool SCR_IdentityBioGroupConfig::IsEnabled ( )
inlineprotected

Check if Bio Config is enabled. If not it will never be randomized.

Returns
If config is enabled

Definition at line 34 of file SCR_IdentityBioGroupConfig.c.

◆ IsValidFaction() [1/2]

bool SCR_IdentityBioGroupConfig::IsValidFaction ( int factionIndex)
inlineprotected

Is Valid faction

Parameters
[in]factionIndexfaction Index
Returns
Returns true if no faction needed for group if if given faction is within the needed faction list

Definition at line 74 of file SCR_IdentityBioGroupConfig.c.

◆ IsValidFaction() [2/2]

bool SCR_IdentityBioGroupConfig::IsValidFaction ( string factionKey)
inlineprotected

Is Valid faction

Parameters
[in]factionKeyfaction key
Returns
Returns true if no faction needed for group if if given faction is within the needed faction list

Definition at line 62 of file SCR_IdentityBioGroupConfig.c.

◆ IsValidForRandomization()

bool SCR_IdentityBioGroupConfig::IsValidForRandomization ( IEntity entity,
SCR_ExtendedIdentityComponent extendedIdentity )
inlineprotected

General check if group is valid for randomization param[in] entity Entity which will get a identity param[in] extendedIdentity Extended Identity Component of the entity

Returns
Returns true if the group has a weight and if there are available identities's

Definition at line 44 of file SCR_IdentityBioGroupConfig.c.

◆ OnCharacterBioAssigned()

SCR_IdentityBio SCR_IdentityBioGroupConfig::OnCharacterBioAssigned ( IEntity entity,
int index )
inlineprotected

Called when Character bio is assigned (Server Only) Also removes the bio from available list (Unless the group has no weight and thus need to be randonly assigned)

Parameters
[in]indexIndex of assigned Bio

Definition at line 127 of file SCR_IdentityBioGroupConfig.c.

◆ ResetAvailable()

void SCR_IdentityBioGroupConfig::ResetAvailable ( )
inlineprotected

Resets all available indexes. Including Unique (Server Only).

Definition at line 163 of file SCR_IdentityBioGroupConfig.c.

◆ SetAdditionalWeight()

void SCR_IdentityBioGroupConfig::SetAdditionalWeight ( )
inlineprotected

Definition at line 195 of file SCR_IdentityBioGroupConfig.c.

Member Data Documentation

◆ m_aAvailableIdentityBioIndexList

ref array<int> SCR_IdentityBioGroupConfig::m_aAvailableIdentityBioIndexList = {}
protected

Definition at line 26 of file SCR_IdentityBioGroupConfig.c.

◆ m_aIdentityList

ref array<ref SCR_IdentityBio> SCR_IdentityBioGroupConfig::m_aIdentityList
protected

Definition at line 20 of file SCR_IdentityBioGroupConfig.c.

◆ m_aNeedsFaction

ref array<string> SCR_IdentityBioGroupConfig::m_aNeedsFaction
protected

Definition at line 17 of file SCR_IdentityBioGroupConfig.c.

◆ m_aNeedsFactionIndexes

ref array<int> SCR_IdentityBioGroupConfig::m_aNeedsFactionIndexes
protected

Definition at line 23 of file SCR_IdentityBioGroupConfig.c.

◆ m_aUnavailableIdentityBioIndexList

ref array<int> SCR_IdentityBioGroupConfig::m_aUnavailableIdentityBioIndexList = {}
protected

Definition at line 29 of file SCR_IdentityBioGroupConfig.c.

◆ m_bEnabled

bool SCR_IdentityBioGroupConfig::m_bEnabled
protected

Definition at line 5 of file SCR_IdentityBioGroupConfig.c.

◆ m_fEntryAmountWeightMulti

float SCR_IdentityBioGroupConfig::m_fEntryAmountWeightMulti
protected

Definition at line 14 of file SCR_IdentityBioGroupConfig.c.

◆ m_iWeight

int SCR_IdentityBioGroupConfig::m_iWeight
protected

Definition at line 11 of file SCR_IdentityBioGroupConfig.c.

◆ m_sBioGroupID

string SCR_IdentityBioGroupConfig::m_sBioGroupID
protected

Definition at line 8 of file SCR_IdentityBioGroupConfig.c.


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