Exemplo n.º 1
0
 private void HandleQuerySubEntities(GameQuery_SubEntities q)
 {
     foreach (var inventoried in this.InventoriedEntities)
     {
         if (q.MatchesSelectors(inventoried))
             q.RegisterEntity(inventoried);
         inventoried.HandleQuery(q);
     }
 }
Exemplo n.º 2
0
 private void HandleQuerySubEntities(GameQuery_SubEntities q)
 {
     foreach (var stored in this.storedEntities)
     {
         if (stored != null)
         {
             if (q.MatchesSelectors(stored))
             {
                 q.RegisterEntity(stored);
             }
             stored.HandleQuery(q);
         }
     }
 }
Exemplo n.º 3
0
 private void HandleQuerySubEntities(GameQuery_SubEntities q)
 {
     foreach (var part in this.bodyParts.Values)
     {
         if (part != null)
         {
             if (q.MatchesSelectors(part))
             {
                 q.RegisterEntity(part);
             }
             part.HandleQuery(q);
         }
     }
 }
Exemplo n.º 4
0
        private void HandleQuerySubEntities(GameQuery_SubEntities q)
        {
            if (this.attachedEntity == null)
            {
                return;
            }

            if (q.MatchesSelectors(this.attachedEntity) ||
                q.Selectors.Contains(SubEntitiesSelector.ACTIVE_TRACKS_TIME) &&
                this.Active &&
                this.attachedEntity.MatchesSelector(SubEntitiesSelector.TRACKS_TIME))
            {
                q.RegisterEntity(this.attachedEntity);
            }
            this.attachedEntity.HandleQuery(q);
        }