Пример #1
0
        private ScrollingTestContainer createStage(ScrollingDirection direction, CrossAction action)
        {
            var specialAction = CrossAction.Special1;

            var stage = new CrossStage(0, new StageDefinition {
                Columns = 2
            }, ref action, ref specialAction);

            stages.Add(stage);

            return(new ScrollingTestContainer(direction)
            {
                Anchor = Anchor.Centre,
                Origin = Anchor.Centre,
                RelativeSizeAxes = Axes.Y,
                AutoSizeAxes = Axes.X,
                TimeRange = 2000,
                Child = stage
            });
        }
Пример #2
0
 private bool notesInStageAreAnchored(CrossStage stage, Anchor anchor) => stage.Columns.SelectMany(c => c.AllHitObjects).All(o => o.Anchor == anchor);