public BulletEntityCollector(BulletContext bulletContext, PlayerContext playerContext)
 {
     _group = bulletContext.GetGroup(BulletMatcher.AllOf(BulletMatcher.OwnerId).NoneOf(BulletMatcher.FlagDestroy));
     _group.OnEntityAdded   += GroupOnOnEntityAdded;
     _group.OnEntityRemoved += GroupOnOnEntityRemoved;
     _group.OnEntityUpdated += GroupOnOnEntityUpdated;
     _playerContext          = playerContext;
 }
Beispiel #2
0
 protected override IGroup <BulletEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.bullet.GetGroup(BulletMatcher.AllOf(BulletMatcher.BulletAsset,
                                                         BulletMatcher.Position)));
 }
Beispiel #3
0
 public BulletCleanUpSystem(BulletContext bulletContext)
 {
     _group = bulletContext.GetGroup(BulletMatcher.AllOf(BulletMatcher.FlagDestroy));
 }