public SlowDownSystem(Contexts contexts) { _slowDowns = contexts.logic.GetGroup(LogicMatcher.AllOf(LogicMatcher.Velocity).AnyOf( LogicMatcher.CurrentMovementX, LogicMatcher.CurrentMovementY, LogicMatcher.Drag, LogicMatcher.Friction)); }
protected override ICollector <LogicEntity> GetTrigger(IContext <LogicEntity> context) { return(context.CreateCollector(LogicMatcher.AllOf(LogicMatcher.Position).AnyOf( LogicMatcher.Grounded, LogicMatcher.Dashing, LogicMatcher.FastFalling, LogicMatcher.WallRiding, LogicMatcher.WallJumping, LogicMatcher.Velocity, LogicMatcher.Dead, LogicMatcher.DeathTimer, LogicMatcher.Attached ).NoneOf(LogicMatcher.Dirty))); }
public TerminalVelocitySystem(Contexts contexts) { _fallers = contexts.logic.GetGroup(LogicMatcher.AllOf(LogicMatcher.Velocity, LogicMatcher.TerminalVelocity)); }
public SpeedLimitSystem(Contexts contexts) { _speedLimiters = contexts.logic.GetGroup(LogicMatcher.AllOf(LogicMatcher.Velocity, LogicMatcher.ThrowMovement)); }
public PrepareColliderSystem(Contexts contexts) { _colliders = contexts.logic.GetGroup(LogicMatcher.AllOf(LogicMatcher.Position, LogicMatcher.Collider)); }