Пример #1
0
 protected override ICollector <GameplayEntity> GetTrigger(IContext <GameplayEntity> context)
 {
     return(context.CreateCollector(
                GameplayMatcher.AllOf(
                    GameplayMatcher.Position
                    )
                ));
 }
Пример #2
0
 public VisualizationSystem(GameplayContext context)
 {
     _visualizationGroup = context.GetGroup(
         GameplayMatcher.AllOf(
             GameplayMatcher.Collidable,
             GameplayMatcher.Position
             )
         );
 }
Пример #3
0
 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
                    )
                );
        }