Path: blob/master/Templates/Rulesets/ruleset-scrolling-empty/osu.Game.Rulesets.EmptyScrolling/Replays/EmptyScrollingReplayFrame.cs
3370 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Game.Rulesets.Replays; namespace osu.Game.Rulesets.EmptyScrolling.Replays { public class EmptyScrollingReplayFrame : ReplayFrame { public List<EmptyScrollingAction> Actions = new List<EmptyScrollingAction>(); public EmptyScrollingReplayFrame(EmptyScrollingAction? button = null) { if (button.HasValue) Actions.Add(button.Value); } public override bool IsEquivalentTo(ReplayFrame other) => other is EmptyScrollingReplayFrame scrollingFrame && Time == scrollingFrame.Time && Actions.SequenceEqual(scrollingFrame.Actions); } }