Files
David Harvey 01b37b3de6 Added GetUserConfirmation to Turnkey IO provider, allowing better Yes/No prompts.
#jira UE-118572
#rb nuno.leiria
#rnx

[CL 16771619 by David Harvey in ue5-main branch]
2021-06-24 08:55:13 -04:00

29 lines
806 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Turnkey
{
abstract class IOProvider
{
public abstract void Log(string Message, bool bAppendNewLine);
public virtual void Report(string Message, bool bAppendNewLine)
{
Log(Message, bAppendNewLine);
}
public abstract void PauseForUser(string Message, bool bAppendNewLine);
public abstract string ReadInput(string Prompt, string DefaultValue, bool bAppendNewLine);
public abstract int ReadInputInt(string Prompt, List<string> Options, bool bIsCancellable, int DefaultValue, bool bAppendNewLine);
public abstract bool GetUserConfirmation(string Message, bool bDefaultValue, bool bAppendNewLine);
}
}