Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ExtendedCharacterIdentity.c
Go to the documentation of this file.
3{
4 [Attribute("-1", desc: "Array of blood types is defined in Extended Identity manager. Leave AUTO to auto assign", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_EBloodType))]
6
7 protected int m_iDayOfDeath = -1;
8 protected int m_iMonthOfDeath = -1;
9 protected int m_iYearOfDeath = -1;
10 protected int m_iHourOfDeath = -1;
11 protected int m_iMinuteOfDeath = -1;
12
13 //------------------------------------------------------------------------------------------------
21 void SetDeathDateAndTime(int deathDay, int deathMonth, int deathYear, int deathHour, int deathMinute)
22 {
23 m_iDayOfDeath = deathDay;
24 m_iMonthOfDeath = deathMonth;
25
26 if (deathYear > 4000)
27 {
28 Print(string.Format("'SCR_ExtendedCharacterIdentity' SetDeathDateAndTime tries to set year of death to %1 but because it would be higher than int.MAX as it does more then 4000 years in minutes. The value is set to 4000 instead!", deathYear), LogLevel.WARNING);
29 deathYear = 4000;
30 }
31 m_iYearOfDeath = deathYear;
32 m_iHourOfDeath = deathHour;
33 m_iMinuteOfDeath = deathMinute;
34 }
35
36 //------------------------------------------------------------------------------------------------
44 bool GetDeathDateAndTime(out int deathDay, out int deathMonth, out int deathYear, out int deathHour, out int deathMinute)
45 {
46 deathDay = m_iDayOfDeath;
47 deathMonth = m_iMonthOfDeath;
48 deathYear = m_iYearOfDeath;
49 deathHour = m_iHourOfDeath;
50 deathMinute = m_iMinuteOfDeath;
51
52 return m_iDayOfDeath > 0 && m_iMonthOfDeath > 0 && m_iYearOfDeath > -1 && m_iHourOfDeath > -1 && m_iMinuteOfDeath > -1;
53 }
54
55 //------------------------------------------------------------------------------------------------
60 {
61 m_eBloodType = bloodType;
62 }
63
64 //------------------------------------------------------------------------------------------------
65 /*
68 */
73}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_EBloodType
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
bool GetDeathDateAndTime(out int deathDay, out int deathMonth, out int deathYear, out int deathHour, out int deathMinute)
void SetBloodType(SCR_EBloodType bloodType)
void SetDeathDateAndTime(int deathDay, int deathMonth, int deathYear, int deathHour, int deathMinute)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
SCR_FieldOfViewSettings Attribute