Exemplo n.º 1
0
 public void AddReact <TEntity>(Entitas.IMatcher <TEntity> matcher, System.Func <TEntity, bool> filter, System.Action <System.Collections.Generic.List <TEntity> > execute) where TEntity : class, Entitas.IEntity
 {
     AddReact(Entitas.CollectorContextExtension.CreateCollector(GetContext <TEntity>(), matcher), filter, execute);
 }
Exemplo n.º 2
0
 public void AddReactEach <TEntity>(Entitas.IMatcher <TEntity> matcher, System.Func <TEntity, bool> filter, System.Action <TEntity> execute) where TEntity : class, Entitas.IEntity
 {
     AddReact(matcher, filter, entities => entities.ForEach(execute));
 }
Exemplo n.º 3
0
 public void AddReact <TEntity>(Entitas.IMatcher <TEntity> matcher, bool autoFilter, System.Action <System.Collections.Generic.List <TEntity> > execute) where TEntity : class, Entitas.IEntity
 {
     AddReact(matcher, e => !autoFilter || matcher.Matches(e), execute);
 }