Files
UnrealEngineUWP/Engine/Source/Programs/nDisplayLauncher/Cluster/Config/ConfigurationVersion.cs
Ryan Durand 9ef3748747 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870955 by Ryan Durand in Main branch]
2019-12-26 23:01:54 -05:00

54 lines
885 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 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";
}
}
}
}