Ejemplo n.º 1
0
        private void _Left(Guid contestant)
        {
            var aboriginals = (from a in _Aboriginals where a.Entity.Id == contestant select a);

            foreach (var aboriginal in aboriginals)
            {
                _Updater.Remove(aboriginal);
            }
            _Aboriginals.RemoveAll((a1) => aboriginals.Any((a2) => a2.Entity.Id == a1.Entity.Id));
        }
Ejemplo n.º 2
0
        private void _Clean()
        {
            var dungeons = from dungeon in _Dungeons where dungeon.IsValid() == false select dungeon;

            foreach (var source in dungeons.ToArray())
            {
                _Dungeons.Remove(source);
                _Updater.Remove(source);
            }
        }