Beispiel #1
0
 public static IGroup GetGroup <T1, T2, T3, T4>(this IContext context) where T1 : IComponent where T2 : IComponent where T3 : IComponent where T4 : IComponent
 {
     return(context.GetGroup(MatcherGenerator.AllOf <T1, T2, T3, T4>()));
 }
Beispiel #2
0
 private static IEntity GetEntity <T>(this IContext context) where T : IComponent
 {
     return(context.GetGroup(MatcherGenerator.AllOf <T>()).GetSingleEntity());
 }
Beispiel #3
0
 public static IGroup GetGroup <T>(this IContext context) where T : IComponent
 {
     return(context.GetGroup(MatcherGenerator.AllOf <T>()));
 }