Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CharacterIdentityComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Identity", description: "")]
3 {
4 }
5 
6 class SCR_CharacterIdentityComponent : CharacterIdentityComponent
7 {
8  [Attribute("#AR-Idenity_Name_Format_Full")]
9  protected LocalizedString m_IdentityFormatFull;
10 
11  [Attribute("#AR-Idenity_Name_Format_NoAlias")]
12  protected LocalizedString m_IdentityFormatNoAlias;
13 
14  //------------------------------------------------------------------------------------------------
20  void GetFormattedFullName(out string format, out string name, out string alias, out string surname)
21  {
22  name = GetIdentity().GetName();
23  alias = GetIdentity().GetAlias();
24  surname = GetIdentity().GetSurname();
25 
26  if (alias.IsEmpty())
27  format = m_IdentityFormatNoAlias;
28  else
29  format = m_IdentityFormatFull;
30  }
31 
32  //------------------------------------------------------------------------------------------------
36  void GetFormattedFullName(out string format, out notnull array<string> names)
37  {
38  names.Clear();
39 
40  string name, alias, surname;
41  GetFormattedFullName(format, name, alias, surname);
42 
43  names.Insert(name);
44  names.Insert(alias);
45  names.Insert(surname);
46  }
47 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
CharacterIdentityComponentClass
Definition: CharacterIdentityComponent.c:12
SCR_CharacterIdentityComponentClass
Definition: SCR_CharacterIdentityComponent.c:2
GetIdentity
proto external Identity GetIdentity()
Get identity of this character.
Attribute
SCR_CharacterIdentityComponentClass CharacterIdentityComponentClass Attribute("#AR-Idenity_Name_Format_Full")
Definition: SCR_CharacterIdentityComponent.c:8
GetFormattedFullName
void GetFormattedFullName(out string format, out notnull array< string > names)
Definition: SCR_CharacterIdentityComponent.c:36
LocalizedString
Definition: LocalizedString.c:21
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180