Ejemplo n.º 1
0
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.LeftMouse, InputMatcher.MouseDown)));
 }
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.ClickDown, InputMatcher.HoldingClick)));
 }
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     //return collector
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.InputTouchData)));
 }
Ejemplo n.º 4
0
 protected override void SetTriggers()
 {
     Trigger(InputMatcher.AllOf(InputMatcher.FlagEvent).Added());
 }
Ejemplo n.º 5
0
 protected override void SetTriggers()
 {
     Trigger(Contexts.input.CreateCollector(InputMatcher.AllOf(InputMatcher.FlagTrash, InputMatcher.FlagTrashValidated).Added()));
     Trigger(Contexts.state.CreateCollector(StateMatcher.AllOf(StateMatcher.FlagTrash, StateMatcher.FlagTrashValidated).Added()));
 }
 public ClickSelectionSystem(Contexts contexts) : base(contexts.input)
 {
     _context = contexts.input;
     _selectedEntitiesGroup = contexts.game.GetGroup(GameMatcher.AllOf(GameMatcher.Selected));
     _keyEventGroup         = contexts.input.GetGroup(InputMatcher.AllOf(InputMatcher.KeyEvent, InputMatcher.KeyHeld));
 }
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.ScreenPoint, InputMatcher.MouseEvent, InputMatcher.LeftMouseButtonUp).NoneOf(InputMatcher.MouseOverUi)));
 }
Ejemplo n.º 8
0
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 => context.CreateCollector(InputMatcher.AllOf(InputMatcher.Input, InputMatcher.MouseDown));
Ejemplo n.º 9
0
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.TouchPosition, InputMatcher.TouchType)));
 }
Ejemplo n.º 10
0
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.InputSelectionFrameStart,
                                                       InputMatcher.InputSelectionFrameEnd)));
 }
Ejemplo n.º 11
0
 protected override void SetTriggers()
 {
     Trigger(InputMatcher.AllOf(InputMatcher.ModalOpenEvent, InputMatcher.ModalId).Added());
 }
Ejemplo n.º 12
0
 protected override void SetTriggers()
 {
     Trigger(InputMatcher.AllOf(InputMatcher.ModalCloseEvent).Added());
 }
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.Command, InputMatcher.FloorTransictionCommand)));
 }
Ejemplo n.º 14
0
 public InputTileTouchSystem(Contexts contexts) : base(contexts.input)
 {
     _contexts      = contexts;
     _inputContexts = contexts.input;
     _movers        = _inputContexts.GetGroup(InputMatcher.AllOf(InputMatcher.Touch));
 }