2016-03-07 05:58:40 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
namespace StardewModdingAPI
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Static class containing readonly values.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class Constants
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Stardew Valley's local app data location.
|
|
|
|
|
/// %LocalAppData%//StardewValley
|
|
|
|
|
/// </summary>
|
2016-03-07 06:04:22 +08:00
|
|
|
|
public static string DataPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley");
|
2016-03-07 05:58:40 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Execution path to execute the code.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string ExecutionPath => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Title for the API console
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string ConsoleTitle => string.Format("Stardew Modding API Console - Version {0}", VersionString);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Path for log files to be output to.
|
|
|
|
|
/// %LocalAppData%//StardewValley//ErrorLogs
|
|
|
|
|
/// </summary>
|
2016-03-07 06:04:22 +08:00
|
|
|
|
public static string LogPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs");
|
2016-03-07 05:58:40 +08:00
|
|
|
|
|
|
|
|
|
public const int MajorVersion = 0;
|
|
|
|
|
|
2016-03-21 05:25:37 +08:00
|
|
|
|
public const int MinorVersion = 38;
|
2016-03-07 05:58:40 +08:00
|
|
|
|
|
2016-03-21 05:25:37 +08:00
|
|
|
|
public const int PatchVersion = 0;
|
2016-03-07 05:58:40 +08:00
|
|
|
|
|
|
|
|
|
public const string Build = "Alpha";
|
|
|
|
|
|
|
|
|
|
public static string VersionString => string.Format("{0}.{1}.{2} {3}", MajorVersion, MinorVersion, PatchVersion, Build);
|
|
|
|
|
}
|
|
|
|
|
}
|