Add getter/init props to DalamudStartInfo, change to record type

This commit is contained in:
Raymond 2021-08-16 08:58:03 -04:00
parent 0b0371dc32
commit a5429fab12

View file

@ -9,47 +9,47 @@ namespace Dalamud
/// Struct containing information needed to initialize Dalamud. /// Struct containing information needed to initialize Dalamud.
/// </summary> /// </summary>
[Serializable] [Serializable]
public struct DalamudStartInfo public record DalamudStartInfo
{ {
/// <summary> /// <summary>
/// The working directory of the XIVLauncher installations. /// Gets the working directory of the XIVLauncher installations.
/// </summary> /// </summary>
public string WorkingDirectory; public string WorkingDirectory { get; init; }
/// <summary> /// <summary>
/// The path to the configuration file. /// Gets the path to the configuration file.
/// </summary> /// </summary>
public string ConfigurationPath; public string ConfigurationPath { get; init; }
/// <summary> /// <summary>
/// The path to the directory for installed plugins. /// Gets the path to the directory for installed plugins.
/// </summary> /// </summary>
public string PluginDirectory; public string PluginDirectory { get; init; }
/// <summary> /// <summary>
/// The path to the directory for developer plugins. /// Gets the path to the directory for developer plugins.
/// </summary> /// </summary>
public string DefaultPluginDirectory; public string DefaultPluginDirectory { get; init; }
/// <summary> /// <summary>
/// The path to core Dalamud assets. /// Gets the path to core Dalamud assets.
/// </summary> /// </summary>
public string AssetDirectory; public string AssetDirectory { get; init; }
/// <summary> /// <summary>
/// The language of the game client. /// Gets the language of the game client.
/// </summary> /// </summary>
public ClientLanguage Language; public ClientLanguage Language { get; init; }
/// <summary> /// <summary>
/// The current game version code. /// Gets the current game version code.
/// </summary> /// </summary>
[JsonConverter(typeof(GameVersionConverter))] [JsonConverter(typeof(GameVersionConverter))]
public GameVersion GameVersion; public GameVersion GameVersion { get; init; }
/// <summary> /// <summary>
/// Whether or not market board information should be uploaded by default. /// Gets a value indicating whether or not market board information should be uploaded by default.
/// </summary> /// </summary>
public bool OptOutMbCollection; public bool OptOutMbCollection { get; init; }
} }
} }