protected override ICollector <GameplayEntity> GetTrigger(IContext <GameplayEntity> context) { return(context.CreateCollector( GameplayMatcher.AllOf( GameplayMatcher.Position ) )); }
public VisualizationSystem(GameplayContext context) { _visualizationGroup = context.GetGroup( GameplayMatcher.AllOf( GameplayMatcher.Collidable, GameplayMatcher.Position ) ); }
protected override ICollector <GameplayEntity> GetTrigger(IContext <GameplayEntity> context) { return(context.CreateCollector( GameplayMatcher.AllOf( GameplayMatcher.SpriteRenderer, GameplayMatcher.Sprite ) )); }
public CollisionDetectionSystem(GameplayContext context) { _context = context; _playerGroup = context.GetGroup( GameplayMatcher.AllOf( GameplayMatcher.Wisp ) ); _projectilesGroup = context.GetGroup( GameplayMatcher.AllOf( GameplayMatcher.Collidable ) ); }