Path: blob/master/Templates/Rulesets/ruleset-scrolling-example/osu.Game.Rulesets.Pippidon/Replays/PippidonReplayFrame.cs
2840 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.Pippidon.Replays { public class PippidonReplayFrame : ReplayFrame { public List<PippidonAction> Actions = new List<PippidonAction>(); public PippidonReplayFrame(PippidonAction? button = null) { if (button.HasValue) Actions.Add(button.Value); } public override bool IsEquivalentTo(ReplayFrame other) => other is PippidonReplayFrame pippidonFrame && Time == pippidonFrame.Time && Actions.SequenceEqual(pippidonFrame.Actions); } }