Ejemplo n.º 1
0
 private void RemoveZombie(byte slot) // Remove the zombie when it is dead.
 {
     Entities.Zombie zombie = null;
     if (_zombies.ContainsKey(slot))
     {
         _zombies.TryRemove(slot, out zombie);
     }
 }
Ejemplo n.º 2
0
        private Entities.Zombie GetZombie(byte slot) // Gets the zombie class based on the slot id :)
        {
            Entities.Zombie zombie = null;
            if (_zombies.ContainsKey(slot))
            {
                _zombies.TryGetValue(slot, out zombie);
            }

            return(zombie);
        }