26 lines
897 B
C#
26 lines
897 B
C#
using GeometryTD.Definition;
|
|
|
|
namespace GeometryTD.Procedure
|
|
{
|
|
public static class ProcedureMainRunCompletionService
|
|
{
|
|
public static ProcedureMainRunCompletionResult TryEnterCompletedPendingFinish(bool isCompletionDialogShown)
|
|
{
|
|
return isCompletionDialogShown
|
|
? ProcedureMainRunCompletionResult.NoChange
|
|
: ProcedureMainRunCompletionResult.ShowCompletionDialog;
|
|
}
|
|
|
|
public static ProcedureMainRunCompletionResult TryConfirmReturnToMenu(
|
|
ProcedureMainFlowPhase flowPhase,
|
|
bool isReturnToMenuPending)
|
|
{
|
|
if (flowPhase != ProcedureMainFlowPhase.RunCompletedPendingFinish || isReturnToMenuPending)
|
|
{
|
|
return ProcedureMainRunCompletionResult.NoChange;
|
|
}
|
|
|
|
return ProcedureMainRunCompletionResult.ReturnToMenu;
|
|
}
|
|
}
|
|
} |