Esempio n. 1
0
 public void Add(AbsEntity e)
 {
     lock (someLock)
     {
         _entities.Add(e);
     }
 }
Esempio n. 2
0
        public bool Remove(AbsEntity e)
        {
            //Fire fire = e as Fire;

            /*if (fire != null)
             * {
             *  _deadFire.Add(fire);
             * }*/

            lock (someLock)
            {
                return(_entities.Remove(e));
            }
        }