Ejemplo n.º 1
0
 public bool MatchesSelector(SubEntitiesSelector selector)
 {
     foreach (Component c in this.orderedComponents)
     {
         if (c.MatchingSelectors.Contains(selector))
         {
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
 public static IEnumerable <Blueprint> GetMatchingBlueprints(SubEntitiesSelector selector)
 {
     return(BlueprintListing.GetAllBlueprints().Where(b => b.MatchesSelector(selector)));
 }
Ejemplo n.º 3
0
 public bool MatchesSelector(SubEntitiesSelector selector)
 {
     return(this.ReferenceEntity.MatchesSelector(selector));
 }
Ejemplo n.º 4
0
 public static bool MatchesSelector(Entity en, SubEntitiesSelector s)
 {
     return(en.MatchesSelector(s));
 }