/// <summary> /// Adds a new replayable judgement result data to the frame and returns it. /// </summary> public ReplayableJudgement AddJudgement(Action <ReplayableJudgement> initializer) { var judgement = replayJudgementRecycler.GetNext(); initializer.Invoke(judgement); Judgements.Add(judgement); return(judgement); }
/// <summary> /// Adds a new replayable input data to the frame and returns it. /// </summary> public ReplayableInput AddInput(Action <ReplayableInput> initializer) { var input = replayInputRecycler.GetNext(); initializer.Invoke(input); Inputs.Add(input); return(input); }