Exemplo n.º 1
0
        public int CountActors(ActorFilterDelegate actorFilter)
        {
            int num = 0;

            DictionaryView <uint, AreaCheck.AroundRecord> .Enumerator enumerator = this._aroundRecords.GetEnumerator();
            while (enumerator.MoveNext())
            {
                if (actorFilter != null)
                {
                    KeyValuePair <uint, AreaCheck.AroundRecord> current = enumerator.get_Current();
                    if (!actorFilter(ref current.get_Value().actor))
                    {
                        continue;
                    }
                }
                num++;
            }
            return(num);
        }