-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConfig.cs
69 lines (59 loc) · 2.92 KB
/
Config.cs
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using System.ComponentModel;
using SSMenuSystem.Features;
#if EXILED
using Exiled.API.Interfaces;
#endif
namespace SSMenuSystem
{
/// <inheritdoc cref="IConfig"/>
public class Config
#if EXILED
: IConfig
#endif
{
/// <inheritdoc/>
public bool IsEnabled { get; set; } = true;
/// <inheritdoc/>
public bool Debug { get; set; }
/// <summary>
/// Gets or sets a value indicating whether pins is allowed or not (pin is a thing that has been displayed on all menus).
/// </summary>
[Description("Whether pins is allowed or not (pin is a thing that has been displayed on all menus).")]
public bool AllowPinnedContent { get; set; } = true;
/// <summary>
/// Gets or sets a value indicating whether clients (= non-moderators) whould see errors or not.
/// </summary>
[Description("Whether clients (= non-moderators) whould see errors or not.")]
public bool ShowErrorToClient { get; set; } = true;
/// <summary>
/// Gets or sets a value indicating whether clients (= non-moderators) whould see total errors (= some plugins-content name) or not. HIGLY UNRECOMMENDED TO SET TRUE.
/// </summary>
[Description("Whether clients (= non-moderators) whould see total errors (= some plugins-content name) or not. HIGLY UNRECOMMENDED TO SET TRUE.")]
public bool ShowFullErrorToClient { get; set; } = false;
/// <summary>
/// Gets or sets a value indicating whether moderators (= has RA access) whould see total errors (= some plugins-content name).
/// </summary>
[Description("Whether moderators (= has RA access) whould see total errors (= some plugins-content name).")]
public bool ShowFullErrorToModerators { get; set; } = true;
/// <summary>
/// If there is only one menu registered and this set to false, this menu would be automatiquely displayed. Disabled.
/// </summary>
[Description("If there is only one menu registered and this set to false, this menu would be automatiquely displayed. Disabled.")]
public bool ForceMainMenuEventIfOnlyOne { get; set; }
/// <summary>
/// Gets or sets a value indicating whether examples is enabled. Warning: if set to true, some content of examples would be Game breaking (speed ability, scan ability, etc...)
/// </summary>
[Description("Whether examples is enabled. Warning: if set to true, some content of examples would be Game breaking (speed ability, scan ability, etc...).")]
public bool EnableExamples { get; set; } = true;
/// <summary>
/// The comptability system config.
/// </summary>
public ComptabilityConfig ComptabilitySystem { get; set; } = new();
#if NWAPI
/// <summary>
/// Plugin translations.
/// </summary>
public Translation Translation { get; set; } = new();
#endif
}
}