Files
JeanMichel Dignard 0f9ad96858 Copying //UE4/Dev-Enterprise @ cl 6890376 to Dev-Main (//UE4/Dev-Main)
#lockdown nick.penwarden
#rb none

[CL 6890764 by JeanMichel Dignard in Main branch]
2019-06-07 11:22:52 -04:00

54 lines
895 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nDisplayLauncher.Cluster.Config
{
public enum ConfigurationVersion
{
Ver21, // 4.21 and older
Ver22,
Ver23
}
public static class ConfigurationVersionHelpers
{
public static ConfigurationVersion FromString(string Ver)
{
if (Ver.CompareTo("23") == 0)
{
return ConfigurationVersion.Ver23;
}
if (Ver.CompareTo("22") == 0)
{
return ConfigurationVersion.Ver22;
}
else
{
return ConfigurationVersion.Ver21;
}
}
public static string ToString(ConfigurationVersion Ver)
{
switch (Ver)
{
case ConfigurationVersion.Ver23:
return "23";
case ConfigurationVersion.Ver22:
return "22";
default:
return "21";
}
}
}
}