예제 #1
0
        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);
        }
예제 #2
0
 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;
        }