public DeathEntry AddEntry(string name, int deaths) { foreach (DeathEntry o in m_Entries) { if (o.Name == name) { o.Deaths += deaths; return(o); } } DeathEntry be = new DeathEntry(name, deaths); m_Entries.Add(be); return(be); }
public void AddEntry(DeathEntry be) { m_Entries.Add(be); }
public void AddEntry( DeathEntry be ) { m_Entries.Add( be ); }
public DeathEntry AddEntry( string name, int deaths ) { foreach( DeathEntry o in m_Entries ) if (o.Name == name) { o.Deaths += deaths; return o; } DeathEntry be = new DeathEntry( name, deaths ); m_Entries.Add( be ); return be; }