コード例 #1
0
ファイル: Survival.cs プロジェクト: artem1919/AlterEmuv502
 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);
     }
 }
コード例 #2
0
ファイル: Survival.cs プロジェクト: artem1919/AlterEmuv502
        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);
        }