3 const int MAX_DAMAGE_RECORDS = 5;
5 bool m_ChangedSinceSerialization;
14 void AddDamage(
float value_global,
float value_blood,
float value_shock)
16 m_ChangedSinceSerialization =
true;
18 m_DamageList.InsertAt(damage_data,0);
19 if( m_DamageList.Count() > MAX_DAMAGE_RECORDS )
21 m_DamageList.RemoveOrdered(MAX_DAMAGE_RECORDS);
25 void InsertDamageObject(
DamageData damage_object)
27 m_DamageList.Insert(damage_object);
39 for(
int i = 0; i < m_DamageList.Count(); i++)
41 damage_list.Insert(m_DamageList.Get(i));
47 int index = m_DamageList.Count() - 1;
48 for(; index >= 0; index--)
50 damage_list.Insert(m_DamageList.Get(index));
56 if( m_ChangedSinceSerialization )
60 m_ChangedSinceSerialization =
false;
66 for(
int i = 0; i < m_DamageList.Count(); i++)
68 output = output + m_DamageList.Get(i).ToString() +
", ";