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