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; }
public BulletCleanUpSystem(BulletContext bulletContext) { _group = bulletContext.GetGroup(BulletMatcher.AllOf(BulletMatcher.FlagDestroy)); }
public UpdateBulletPosition(BulletContext bullets, GlobalsContext globals) { _bullets = bullets.GetGroup(BulletMatcher.Target); _globals = globals; }