1
0
forked from liza/Questionable
Questionable/Questionable.Model/EExpansionVersion.cs

37 lines
1.1 KiB
C#

using System.Collections.Generic;
namespace Questionable.Model;
public enum EExpansionVersion : byte
{
ARealmReborn = 0,
Heavensward = 1,
Stormblood = 2,
Shadowbringers = 3,
Endwalker = 4,
Dawntrail = 5
}
public static class ExpansionData
{
public static IReadOnlyDictionary<EExpansionVersion, string> ExpansionFolders =
new Dictionary<EExpansionVersion, string>
{
{ EExpansionVersion.ARealmReborn, "2.x - A Realm Reborn" },
{ EExpansionVersion.Heavensward, "3.x - Heavensward" },
{ EExpansionVersion.Stormblood, "4.x - Stormblood" },
{ EExpansionVersion.Shadowbringers, "5.x - Shadowbringers" },
{ EExpansionVersion.Endwalker, "6.x - Endwalker" },
{ EExpansionVersion.Dawntrail, "7.x - Dawntrail" }
};
public static string ToFriendlyString(this EExpansionVersion expansionVersion)
{
return expansionVersion switch
{
EExpansionVersion.ARealmReborn => "A Realm Reborn",
_ => expansionVersion.ToString(),
};
}
}