-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathConfig.cs
More file actions
32 lines (30 loc) · 1.01 KB
/
Config.cs
File metadata and controls
32 lines (30 loc) · 1.01 KB
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
using Exiled.API.Interfaces;
using System.Collections.Generic;
using System.ComponentModel;
using YongAnFrame.Features.Roles;
namespace YongAnFrame
{
/// <summary>
/// <seealso cref="YongAnFramePlugin"/>的配置
/// </summary>
public sealed class Config : IConfig
{
///<inheritdoc/>
public bool IsEnabled { get; set; } = true;
///<inheritdoc/>
public bool Debug { get; set; }
/// <summary>
/// 获取或设置全局的经验加成
/// </summary>
[Description("全局的经验加成")]
public float GlobalExpMultiplier { get; set; } = 1;
/// <summary>
/// 获取或设置禁用自定义角色生成
/// </summary>
/// <remarks>
/// 只能用于继承<seealso cref="CustomRolePlus"/>的类
/// </remarks>
[Description("禁用自定义角色生成(只能用于继承CustomRolePlus的类)")]
public List<string> DisableCustomRolePlus { get; set; } = ["114514", "1"];
}
}