Example #1
0
        public void RemoveShotByGID(int id)
        {
            if (ShotList.ContainsKey(id))
            {
                Shot s = ShotList[id];

                if (s.Owner != null)
                {
                    s.Owner.RemoveShot(s);
                }

                ShotList.Remove(id);
                BZFStoGlobalIDMap.Remove(s.BZFSShotID);

                if (ShotRemoved != null)
                {
                    ShotRemoved.Invoke(this, s);
                }
            }
        }
Example #2
0
 public void When(ShotRemoved shotRemoved)
 {
 }