muddesigner/Mud Designer/Settings.cs

39 lines
1.2 KiB
C#

using System.Windows.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MudDesigner
{
/// <summary>
/// Toolkit settings, not related to the MUD engine or project.
/// Saved using the Engines Filesystem.
/// </summary>
public sealed class Settings
{
/// <summary>
/// Various development stages that the kit can be in.
/// </summary>
public enum KitStages
{
Preview_Release,
Development_Source_Only,
Alpha,
Beta,
Final,
}
#warning Reminder: Change Settings.VersionStage to KitStages.Preview upon release.
public static KitStages VersionStage = KitStages.Development_Source_Only;
public static string GetVersion()
{
string stage = VersionStage.ToString().Replace("_", " ");
Version version = new Version(Application.ProductVersion);
string versionID = version.Major + "." + version.Minor + "." + version.Revision + ":" + version.Build;
return stage + " " + versionID;
}
}
}