// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using osu.Framework.Input; using osu.Game.Rulesets.Replays; namespace osu.Game.Rulesets.Catch.Replays { public class CatchFramedReplayInputHandler : FramedReplayInputHandler { public CatchFramedReplayInputHandler(Replay replay) : base(replay) { } public override List GetPendingStates() => new List { new CatchReplayState { PressedActions = new List { CatchAction.PositionUpdate }, CatcherX = ((CatchReplayFrame)CurrentFrame).MouseX }, new CatchReplayState { PressedActions = new List() }, }; public class CatchReplayState : ReplayState { public float? CatcherX { get; set; } } } }