- Added Settings for storing various Toolkit settings.
This commit is contained in:
parent
7005b869e4
commit
d96a175372
5 changed files with 47 additions and 4 deletions
39
Mud Designer/Settings.cs
Normal file
39
Mud Designer/Settings.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue