Пример #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)));
 }
Пример #4
0
 protected override void SetTriggers()
 {
     Trigger(InputMatcher.AllOf(InputMatcher.FlagEvent).Added());
 }
Пример #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)));
 }
Пример #8
0
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 => context.CreateCollector(InputMatcher.AllOf(InputMatcher.Input, InputMatcher.MouseDown));
Пример #9
0
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.TouchPosition, InputMatcher.TouchType)));
 }
Пример #10
0
 protected override ICollector <InputEntity> GetTrigger(IContext <InputEntity> context)
 {
     return(context.CreateCollector(InputMatcher.AllOf(InputMatcher.InputSelectionFrameStart,
                                                       InputMatcher.InputSelectionFrameEnd)));
 }
Пример #11
0
 protected override void SetTriggers()
 {
     Trigger(InputMatcher.AllOf(InputMatcher.ModalOpenEvent, InputMatcher.ModalId).Added());
 }
Пример #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)));
 }
Пример #14
0
 public InputTileTouchSystem(Contexts contexts) : base(contexts.input)
 {
     _contexts      = contexts;
     _inputContexts = contexts.input;
     _movers        = _inputContexts.GetGroup(InputMatcher.AllOf(InputMatcher.Touch));
 }