Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 protected override IGroup <BulletEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.bullet.GetGroup(BulletMatcher.AllOf(BulletMatcher.BulletAsset,
                                                         BulletMatcher.Position)));
 }
Ejemplo n.º 3
0
 public BulletCleanUpSystem(BulletContext bulletContext)
 {
     _group = bulletContext.GetGroup(BulletMatcher.AllOf(BulletMatcher.FlagDestroy));
 }