4 [
Attribute(
desc:
"An array of all damage states to obtain the Icon and Color")]
5 protected ref array<ref SCR_DamageStateInfo> m_aDamageStateUiInfo;
28 if (damageStateInfo.m_eDamageType == damageType)
29 return damageStateInfo.m_UiInfo;
32 Print(
string.Format(
"'SCR_DamageStateConfig': %1 is not included in 'm_aDamageStateUiInfo' thus cannot get UIinfo",
typename.EnumToString(
EDamageType, damageType)), LogLevel.WARNING);
41 int GetDamageStateInfoArray(out notnull array<ref SCR_DamageStateInfo> damageStateInfoArray)
43 damageStateInfoArray.Clear();
46 damageStateInfoArray.Insert(damageStateInfo);
48 return damageStateInfoArray.Count();
57 return m_UnconciousStateUiInfo;
66 return m_DeathStateUiInfo;
75 return m_DestroyedStateUiInfo;
84 return m_FracturedStateUiInfo;
91 [
Attribute(
desc:
"Damage type associated with UI info", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(
EDamageType))]
94 [
Attribute(
desc:
"UI info of damage type, including colors and background images")]