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

Protected Member Functions

SCR_IdentityBioTypeHolderConfig GetIdentityBioHolder (SCR_EIdentityType identityType)
int GetBioGroupIndexFromID (SCR_EIdentityType identityType, string bioGroupID)
SCR_IdentityBio GetBioFromIndexes (IEntity entity, SCR_EIdentityType identityType, int bioGroupIndex, int bioIndex)
int CombineBioIndexes (int bioGroupIndex, int bioIndex)
void GetBioIndexesFromCombined (int combinedIndexes, out int bioGroupIndex, out int bioIndex)
int GetValidBioGroups (IEntity entity, SCR_EIdentityType identityType, int factionIndex, notnull array< ref SCR_IdentityBioGroupConfig > validBioGroups)
SCR_IdentityBio AssignRandomAvailableBio (RandomGenerator randomizer, IEntity entity, SCR_EIdentityType identityType, int factionIndex, out int bioGroupIndex, out int bioIndex, bool useRandomWeighted=true)
SCR_IdentityBio AssignBioManually (IEntity entity, SCR_EIdentityType identityType, int bioGroupIndex, int bioIndex)
bool GetCreationdayString (SCR_ExtendedIdentityComponent identityComponent, out string format, out string day, out string month, out string year, out string age)
bool IsCreationDay (SCR_ExtendedIdentityComponent identityComponent)
int GetYearOfCreation (SCR_ExtendedIdentityComponent identityComponent)
override void OnControllableDestroyed (notnull SCR_InstigatorContextData instigatorContextData)
bool GetDeathDateAndTimeString (SCR_ExtendedCharacterIdentityComponent identityComponent, out string formatDate, out string dayString, out string monthString, out string yearString, out string time)
int GetRandomBloodTypeIndex (RandomGenerator randomizer=null, bool useWeightedRandom=true)
SCR_UIInfo GetBloodTypeUIInfo (SCR_EBloodType bloodType)
override bool PreparePlayerEntity_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity)
void OnCharacterBecomeUnconscious (IEntity character)
void SpawnIdentityItemInInventory_S (ChimeraCharacter character, bool checkIfHadSpawnedIdentityItem=true)
bool HasIdentityItemGenerationType (SCR_EIdentityItemGenerationType type)
bool IsIdentityItemSlotEnabled ()
bool IsGenerateValuableIntelEnabled ()
bool ShowPlayerNameOnIdentityItem ()
void OnCharacterPossessed (IEntity entity)
override void OnPlayerConnected (int playerId)
override void OnPlayerDisconnected (int playerId, KickCauseCode cause, int timeout)
void OnValuableIntelHandIn_S (notnull PlayerController playerController)
void OnValuableIntelHandIn_RPL (int playerID)
void ShowHint (EHint hintType)
 Show Extended Identity specific hints.
override void EOnInit (IEntity owner)
override void OnPostInit (IEntity owner)

Static Protected Member Functions

static SCR_IdentityManagerComponent GetInstance ()
static bool Static_IsGenerateValuableIntelEnabled ()

Protected Attributes

LocalizedString m_sBirthDateFormat
LocalizedString m_sDateDeathFormat
ResourceName m_sCharacterIdentityBloodTypeConfig
ref array< ResourceNamem_aIdentityBioTypeHoldersConfigs
SCR_EIdentityItemGenerationType m_eIdentityItemGenerationType
bool m_bEnableIdentityItemSlot
bool m_bGenerateValuableIntel
bool m_bShowPlayerNameOnIdentityItem
ref SCR_GeneralHintStorage m_ExtendedIdentityHints
int m_DebugRandomizeSeedOverwrite
int m_DebugBioGroupIndexOverwrite
int m_DebugBioIndexOverwrite
const string HAND_IN_VALUABLE_INTEL_SOUNDEVENT = "SOUND_DEPOSITINTEL"
ref array< ref SCR_IdentityBioTypeHolderConfigm_aIdentityBioTypeHolders = {}
ref SCR_BloodTypeHolderConfig m_BloodTypeHolder
TimeAndWeatherManagerEntity m_TimeAndWeatherManager
SCR_FactionManager m_FactionManager

Static Protected Attributes

static SCR_IdentityManagerComponent m_sInstance
static const int MAX_IDENTITY_GROUPS = 9999
static const int MAX_IDENTITY_ENTRIES = 99999

Detailed Description

Definition at line 6 of file SCR_IdentityManagerComponent.c.

Member Function Documentation

◆ AssignBioManually()

SCR_IdentityBio SCR_IdentityManagerComponent::AssignBioManually ( IEntity entity,
SCR_EIdentityType identityType,
int bioGroupIndex,
int bioIndex )
inlineprotected

Assign a specific given Bio. Makes sure that it is still removed from Available bio's so it cannot be randomized (if bio group has weight) (Server Only) This Function allows duplicate bio's even unique once. And allows Bio's that are not valid for randomization to be assigned NOTE: Gender specific bio's require the given entity to be the specific Gender AND the index to be += SCR_IdentityBioGroupConfig.m_aIdentityList.()!

Parameters
[in]identityTypeIdentity type to obtain Bio info from
[in]bioGroupIndexgroup index to assign bio from
[in]bioIndexBio index within group to assign
Returns
the Assigned Bio

Definition at line 283 of file SCR_IdentityManagerComponent.c.

◆ AssignRandomAvailableBio()

SCR_IdentityBio SCR_IdentityManagerComponent::AssignRandomAvailableBio ( RandomGenerator randomizer,
IEntity entity,
SCR_EIdentityType identityType,
int factionIndex,
out int bioGroupIndex,
out int bioIndex,
bool useRandomWeighted = true )
inlineprotected

Assign a random valid bio. (Server Only) NOTE! Make sure that the randomizer used for server and clients use the same seeds and are called at the same time! Else there will be a missmatch in data

Parameters
[in]useRandomWeightedIf false will ignore weights in randomization (Will never randomize groups that have no weight assigned)
[in]identityTypeIdentity type to obtain Bio info from
[in]factionIndexChecks all groups that allow given faction
[out]bioGroupIndexIndex of Bio Group
[out]bioIndexIndex of Bio within group
[in]randomizerRandomGenerator to use in randomization. Leave null to not use seeded randomization
Returns
Character bio that was assigned

Definition at line 211 of file SCR_IdentityManagerComponent.c.

◆ CombineBioIndexes()

int SCR_IdentityManagerComponent::CombineBioIndexes ( int bioGroupIndex,
int bioIndex )
inlineprotected

Combine Bio group index and Bio index into one int for optimized replication

Parameters
[in]bioGroupIndexgroup index
[in]bioIndexentry index
Returns
Combined index

Definition at line 133 of file SCR_IdentityManagerComponent.c.

◆ EOnInit()

override void SCR_IdentityManagerComponent::EOnInit ( IEntity owner)
inlineprotected

Definition at line 685 of file SCR_IdentityManagerComponent.c.

◆ GetBioFromIndexes()

SCR_IdentityBio SCR_IdentityManagerComponent::GetBioFromIndexes ( IEntity entity,
SCR_EIdentityType identityType,
int bioGroupIndex,
int bioIndex )
inlineprotected

Get bio from given indexes

Parameters
[in]entityEntity linked to bio
[in]identityTypeIdentity type to obtain Bio info from
[in]bioGroupIndexgroup index
[in]bioIndexentry index
Returns
Bio

Definition at line 112 of file SCR_IdentityManagerComponent.c.

◆ GetBioGroupIndexFromID()

int SCR_IdentityManagerComponent::GetBioGroupIndexFromID ( SCR_EIdentityType identityType,
string bioGroupID )
inlineprotected

Go over all groups and returns group index with given ID string

Parameters
[in]identityTypeIdentity type to obtain Bio info from
[in]groupID
Returns
Index of group, Returns -1 if not found

Definition at line 85 of file SCR_IdentityManagerComponent.c.

◆ GetBioIndexesFromCombined()

void SCR_IdentityManagerComponent::GetBioIndexesFromCombined ( int combinedIndexes,
out int bioGroupIndex,
out int bioIndex )
inlineprotected

Get the combined bio index and seperate the group and the entry index

Parameters
[in]Combinedindex
[out]bioGroupIndexgroup index
[out]bioIndexentry index

Definition at line 143 of file SCR_IdentityManagerComponent.c.

◆ GetBloodTypeUIInfo()

SCR_UIInfo SCR_IdentityManagerComponent::GetBloodTypeUIInfo ( SCR_EBloodType bloodType)
inlineprotected

Get bloodtype index Ui Info

Parameters
[in]indexIndex of bloodtype
Returns
Ui Info

Definition at line 474 of file SCR_IdentityManagerComponent.c.

◆ GetCreationdayString()

bool SCR_IdentityManagerComponent::GetCreationdayString ( SCR_ExtendedIdentityComponent identityComponent,
out string format,
out string day,
out string month,
out string year,
out string age )
inlineprotected

Get date of character's birth.

Parameters
[in]identityComponentIdentity Component to get Birthday from
[out]formatFormat of birthday/creationday
[out]dayDay of birth/creation
[out]monthMonth of of Birth/creation
[out]agestring
[out]yearYear of birth/creation using character age and current year
Returns
False if does not have creation string

Definition at line 305 of file SCR_IdentityManagerComponent.c.

◆ GetDeathDateAndTimeString()

bool SCR_IdentityManagerComponent::GetDeathDateAndTimeString ( SCR_ExtendedCharacterIdentityComponent identityComponent,
out string formatDate,
out string dayString,
out string monthString,
out string yearString,
out string time )
inlineprotected

Get date and time of character's death. Will return -1 if character has not died yet.

Parameters
[in]identityComponentIdentity Component to get Birthday from
[out]formatDateFormat of date
[out]dayStringDay of death
[out]monthStringMonth of of death
[out]yearStringYear of of death
[out]timeTime of death (Not included in Format in default format settings)
Returns
False if did not have a death date or time

Definition at line 383 of file SCR_IdentityManagerComponent.c.

◆ GetIdentityBioHolder()

SCR_IdentityBioTypeHolderConfig SCR_IdentityManagerComponent::GetIdentityBioHolder ( SCR_EIdentityType identityType)
inlineprotected

Definition at line 69 of file SCR_IdentityManagerComponent.c.

◆ GetInstance()

SCR_IdentityManagerComponent SCR_IdentityManagerComponent::GetInstance ( )
inlinestaticprotected

Definition at line 62 of file SCR_IdentityManagerComponent.c.

◆ GetRandomBloodTypeIndex()

int SCR_IdentityManagerComponent::GetRandomBloodTypeIndex ( RandomGenerator randomizer = null,
bool useWeightedRandom = true )
inlineprotected

Get bloodtype index, either random or weighted random

Parameters
[in]randomizerIf set will use given generator to use sseded randomization
[in]useWeightedRandomIf true will use weighted random
Returns
Blood index

Definition at line 414 of file SCR_IdentityManagerComponent.c.

◆ GetValidBioGroups()

int SCR_IdentityManagerComponent::GetValidBioGroups ( IEntity entity,
SCR_EIdentityType identityType,
int factionIndex,
notnull array< ref SCR_IdentityBioGroupConfig > validBioGroups )
inlineprotected

Get list of all valid bio's for given info (Server only)

Parameters
[in]identityTypeIdentity type to obtain Bio info from
[in]factionIndexChecks all groups that allow given faction
[out]validBioGroupsList of all valid Bio groups
Returns
Count of all valid bio's

Definition at line 155 of file SCR_IdentityManagerComponent.c.

◆ GetYearOfCreation()

int SCR_IdentityManagerComponent::GetYearOfCreation ( SCR_ExtendedIdentityComponent identityComponent)
inlineprotected

Get year of birth using character age and current year param[in] identityComponent Identity Component to get info from

Returns
Birth year

Definition at line 343 of file SCR_IdentityManagerComponent.c.

◆ HasIdentityItemGenerationType()

bool SCR_IdentityManagerComponent::HasIdentityItemGenerationType ( SCR_EIdentityItemGenerationType type)
inlineprotected
Parameters
[in]typeType to check
Returns
If identity item generation type is true

Definition at line 565 of file SCR_IdentityManagerComponent.c.

◆ IsCreationDay()

bool SCR_IdentityManagerComponent::IsCreationDay ( SCR_ExtendedIdentityComponent identityComponent)
inlineprotected

Check if today (ingame) is the characters birthday

Parameters
[in]identityComponentIdentity Component to get Birthday/creation day from
Returns
True if it is currently the characters birthday/Entities creation day

Definition at line 327 of file SCR_IdentityManagerComponent.c.

◆ IsGenerateValuableIntelEnabled()

bool SCR_IdentityManagerComponent::IsGenerateValuableIntelEnabled ( )
inlineprotected
Returns
If identity items will be generated with valuable intel

Definition at line 579 of file SCR_IdentityManagerComponent.c.

◆ IsIdentityItemSlotEnabled()

bool SCR_IdentityManagerComponent::IsIdentityItemSlotEnabled ( )
inlineprotected
Returns
If identity item slot is enabled

Definition at line 572 of file SCR_IdentityManagerComponent.c.

◆ OnCharacterBecomeUnconscious()

void SCR_IdentityManagerComponent::OnCharacterBecomeUnconscious ( IEntity character)
inlineprotected

Definition at line 497 of file SCR_IdentityManagerComponent.c.

◆ OnCharacterPossessed()

void SCR_IdentityManagerComponent::OnCharacterPossessed ( IEntity entity)
inlineprotected

Definition at line 602 of file SCR_IdentityManagerComponent.c.

◆ OnControllableDestroyed()

override void SCR_IdentityManagerComponent::OnControllableDestroyed ( notnull SCR_InstigatorContextData instigatorContextData)
inlineprotected

Definition at line 357 of file SCR_IdentityManagerComponent.c.

◆ OnPlayerConnected()

override void SCR_IdentityManagerComponent::OnPlayerConnected ( int playerId)
inlineprotected

Definition at line 611 of file SCR_IdentityManagerComponent.c.

◆ OnPlayerDisconnected()

override void SCR_IdentityManagerComponent::OnPlayerDisconnected ( int playerId,
KickCauseCode cause,
int timeout )
inlineprotected

Definition at line 624 of file SCR_IdentityManagerComponent.c.

◆ OnPostInit()

override void SCR_IdentityManagerComponent::OnPostInit ( IEntity owner)
inlineprotected

Definition at line 703 of file SCR_IdentityManagerComponent.c.

◆ OnValuableIntelHandIn_RPL()

void SCR_IdentityManagerComponent::OnValuableIntelHandIn_RPL ( int playerID)
inlineprotected

Definition at line 653 of file SCR_IdentityManagerComponent.c.

◆ OnValuableIntelHandIn_S()

void SCR_IdentityManagerComponent::OnValuableIntelHandIn_S ( notnull PlayerController playerController)
inlineprotected

Called when Valuable intel is handed in param[in] playerController Player controller of player who handed in the valuable intel

Definition at line 639 of file SCR_IdentityManagerComponent.c.

◆ PreparePlayerEntity_S()

override bool SCR_IdentityManagerComponent::PreparePlayerEntity_S ( SCR_SpawnRequestComponent requestComponent,
SCR_SpawnHandlerComponent handlerComponent,
SCR_SpawnData data,
IEntity entity )
inlineprotected

Definition at line 485 of file SCR_IdentityManagerComponent.c.

◆ ShowHint()

void SCR_IdentityManagerComponent::ShowHint ( EHint hintType)
inlineprotected

Show Extended Identity specific hints.

No hints set

No hint manager

Show the hint

Definition at line 664 of file SCR_IdentityManagerComponent.c.

◆ ShowPlayerNameOnIdentityItem()

bool SCR_IdentityManagerComponent::ShowPlayerNameOnIdentityItem ( )
inlineprotected
Returns
If identity items will show the bio name or player name

Definition at line 586 of file SCR_IdentityManagerComponent.c.

◆ SpawnIdentityItemInInventory_S()

void SCR_IdentityManagerComponent::SpawnIdentityItemInInventory_S ( ChimeraCharacter character,
bool checkIfHadSpawnedIdentityItem = true )
inlineprotected

Definition at line 505 of file SCR_IdentityManagerComponent.c.

◆ Static_IsGenerateValuableIntelEnabled()

bool SCR_IdentityManagerComponent::Static_IsGenerateValuableIntelEnabled ( )
inlinestaticprotected
Returns
If identity items will be generated with valuable intel

Definition at line 593 of file SCR_IdentityManagerComponent.c.

Member Data Documentation

◆ HAND_IN_VALUABLE_INTEL_SOUNDEVENT

const string SCR_IdentityManagerComponent::HAND_IN_VALUABLE_INTEL_SOUNDEVENT = "SOUND_DEPOSITINTEL"
protected

Definition at line 46 of file SCR_IdentityManagerComponent.c.

◆ m_aIdentityBioTypeHolders

ref array<ref SCR_IdentityBioTypeHolderConfig> SCR_IdentityManagerComponent::m_aIdentityBioTypeHolders = {}
protected

Definition at line 48 of file SCR_IdentityManagerComponent.c.

◆ m_aIdentityBioTypeHoldersConfigs

ref array<ResourceName> SCR_IdentityManagerComponent::m_aIdentityBioTypeHoldersConfigs
protected

Definition at line 20 of file SCR_IdentityManagerComponent.c.

◆ m_bEnableIdentityItemSlot

bool SCR_IdentityManagerComponent::m_bEnableIdentityItemSlot
protected

Definition at line 26 of file SCR_IdentityManagerComponent.c.

◆ m_bGenerateValuableIntel

bool SCR_IdentityManagerComponent::m_bGenerateValuableIntel
protected

Definition at line 29 of file SCR_IdentityManagerComponent.c.

◆ m_BloodTypeHolder

ref SCR_BloodTypeHolderConfig SCR_IdentityManagerComponent::m_BloodTypeHolder
protected

Definition at line 50 of file SCR_IdentityManagerComponent.c.

◆ m_bShowPlayerNameOnIdentityItem

bool SCR_IdentityManagerComponent::m_bShowPlayerNameOnIdentityItem
protected

Definition at line 32 of file SCR_IdentityManagerComponent.c.

◆ m_DebugBioGroupIndexOverwrite

int SCR_IdentityManagerComponent::m_DebugBioGroupIndexOverwrite
protected

Definition at line 41 of file SCR_IdentityManagerComponent.c.

◆ m_DebugBioIndexOverwrite

int SCR_IdentityManagerComponent::m_DebugBioIndexOverwrite
protected

Definition at line 43 of file SCR_IdentityManagerComponent.c.

◆ m_DebugRandomizeSeedOverwrite

int SCR_IdentityManagerComponent::m_DebugRandomizeSeedOverwrite
protected

Definition at line 39 of file SCR_IdentityManagerComponent.c.

◆ m_eIdentityItemGenerationType

SCR_EIdentityItemGenerationType SCR_IdentityManagerComponent::m_eIdentityItemGenerationType
protected

Definition at line 23 of file SCR_IdentityManagerComponent.c.

◆ m_ExtendedIdentityHints

ref SCR_GeneralHintStorage SCR_IdentityManagerComponent::m_ExtendedIdentityHints
protected

Definition at line 35 of file SCR_IdentityManagerComponent.c.

◆ m_FactionManager

SCR_FactionManager SCR_IdentityManagerComponent::m_FactionManager
protected

Definition at line 54 of file SCR_IdentityManagerComponent.c.

◆ m_sBirthDateFormat

LocalizedString SCR_IdentityManagerComponent::m_sBirthDateFormat
protected

Definition at line 11 of file SCR_IdentityManagerComponent.c.

◆ m_sCharacterIdentityBloodTypeConfig

ResourceName SCR_IdentityManagerComponent::m_sCharacterIdentityBloodTypeConfig
protected

Definition at line 17 of file SCR_IdentityManagerComponent.c.

◆ m_sDateDeathFormat

LocalizedString SCR_IdentityManagerComponent::m_sDateDeathFormat
protected

Definition at line 14 of file SCR_IdentityManagerComponent.c.

◆ m_sInstance

SCR_IdentityManagerComponent SCR_IdentityManagerComponent::m_sInstance
staticprotected

Definition at line 8 of file SCR_IdentityManagerComponent.c.

◆ m_TimeAndWeatherManager

TimeAndWeatherManagerEntity SCR_IdentityManagerComponent::m_TimeAndWeatherManager
protected

Definition at line 53 of file SCR_IdentityManagerComponent.c.

◆ MAX_IDENTITY_ENTRIES

const int SCR_IdentityManagerComponent::MAX_IDENTITY_ENTRIES = 99999
staticprotected

Definition at line 58 of file SCR_IdentityManagerComponent.c.

◆ MAX_IDENTITY_GROUPS

const int SCR_IdentityManagerComponent::MAX_IDENTITY_GROUPS = 9999
staticprotected

Definition at line 57 of file SCR_IdentityManagerComponent.c.


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