~ruther/NosSmooth

ref: 05c2624a4a566cda726bfd76e8a8dc4affc463b1 NosSmooth/Data/NosSmooth.Data.NOSFiles/Options/NostaleDataOptions.cs -rw-r--r-- 1.3 KiB
05c2624a — František Boháček feat(data): add database nostale data implementation 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
//  NostaleDataOptions.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Data.Abstractions.Language;

namespace NosSmooth.Data.NOSFiles.Options;

/// <summary>
/// Options for loading nostale files.
/// </summary>
public class NostaleDataOptions
{
    /// <summary>
    /// Gets or sets the supported languages that will be loaded into the memory..
    /// </summary>
    public Language[] SupportedLanguages { get; set; } = new Language[] { Language.En };

    /// <summary>
    /// Gets or sets the path to .nos files.
    /// </summary>
    public string NostaleDataPath { get; set; } = "NostaleData";

    /// <summary>
    /// Gets or sets the name of the file with map grid data.
    /// </summary>
    public string MapGridsFileName { get; set; } = "NStcData.NOS";

    /// <summary>
    /// Gets or sets the name of the file with infos data.
    /// </summary>
    public string InfosFileName { get; set; } = "NSgtdData.NOS";

    /// <summary>
    /// Gets or sets the name of the file with language data.
    /// </summary>
    /// <remarks>
    /// Should contain %lang% string to be replaced with the language abbrev.
    /// </remarks>
    public string LanguageFileName { get; set; } = "NSlangData_%lang%.NOS";
}
Do not follow this link