示例#1
0
 public void AddReact <TEntity>(Entitas.ICollector <TEntity> collector, System.Func <TEntity, bool> filter, System.Action <System.Collections.Generic.List <TEntity> > execute) where TEntity : class, Entitas.IEntity
 {
     Add(new InlineReactiveSystem <TEntity>(collector, filter, execute));
 }
示例#2
0
 public void AddReactEach <TEntity>(Entitas.ICollector <TEntity> collector, System.Func <TEntity, bool> filter, System.Action <TEntity> execute) where TEntity : class, Entitas.IEntity
 {
     AddReact(collector, filter, entities => entities.ForEach(execute));
 }
示例#3
0
 public InlineReactiveSystem(Entitas.ICollector <TEntity> collector, System.Func <TEntity, bool> filter, System.Action <System.Collections.Generic.List <TEntity> > execute) : base(collector)
 {
     this.filter  = filter;
     this.execute = execute;
 }