Files
EasyTools/Configs/Config.cs
2026-02-13 01:12:20 +08:00

111 lines
4.9 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using LabApi.Features.Wrappers;
using LabApi.Loader.Features.Paths;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
namespace EasyTools.Configs
{
public class Config
{
[Description("是否打开开局给D级人员一张卡")]
public bool EnableRoundSupplies { get; set; } = true;
[Description("给D级人员什么卡")]
public ItemType ClassDCard { get; set; } = ItemType.KeycardJanitor;
/// /////////////////////////////////////////////////
[Description("启用服务器定时广播")]
public bool EnableAutoServerMessage { get; set; } = true;
[Description("服务器定时广播多久一次")]
public int AutoServerMessageTime { get; set; } = 5;
[Description("服务器定时广播显示多久")]
public ushort AutoServerMessageTimer { get; set; } = 5;
[Description("服务器广播文本")]
public List<string> AutoServerMessageText { get; set; } = ["服务器广播1", "服务器广播2"];
/// /////////////////////////////////////////////////
[Description("启用.bc和.c聊天系统")]
public bool EnableChatSystem { get; set; } = true;
[Description("聊天系统大小默认20")]
public int ChatSystemSize { get; set; } = 20;
[Description("启用玩家反馈管理系统")]
public bool EnableAcSystem { get; set; } = true;
[Description("一个人的聊天信息显示多久,单位为秒")]
public int MessageTime { get; set; } = 10;
[Description("聊天消息的格式,可用的标签为{Message}{MessageType}, {MessageTypeColor}, {SenderNickname}{SenderTeam}{SenderRole} {SenderTeamColor}, {CountDown}")]
public string MessageTemplate { get; set; } = "[{CountDown}]<color={{SenderTeamColor}}>[{SenderTeam}][{SenderRole}]</color><color={MessageTypeColor}>[{MessageType}]</color>{SenderNickname}: {Message}";
// /////////////////////////////////////////////////
[Description("防卡死命令")]
public bool KillMeCommand { get; set; } = true;
/// /////////////////////////////////////////////////
[Description("启用修改SCP血量系统")]
public bool EnableChangeSCPHPSystem { get; set; } = true;
[Description("SCP173,SCP939,SCP049,SCP049-2,SCP096,SCP106血量")]
public List<float> SCPsHP { get; set; } = [4200, 2700, 2300, 400, 2500, 2300];
/// /////////////////////////////////////////////////
[Description("是否开启保安下班")]
public bool GuardsCanEscape { get; set; } = false;
[Description("选择保安下班变成的角色 (NtfSergeant, NtfCaptain, NtfPrivate, NtfSpecialist)")]
public string EscapedGuardRole { get; set; } = "NtfCaptain";
/// /////////////////////////////////////////////////
[Description("是否开启粉糖")]
public bool EnablePinkCandy { get; set; } = false;
[Description("粉糖生成概率(默认50%)")]
public int PinkCandyWeight { get; set; } = 2;
[Description("人类阵营重生获得粉糖?(默认关闭)")]
public bool PinkCandyRespawn { get; set; } = false;
/// /////////////////////////////////////////////////
[Description("Logger module settings / 日志模块设置")]
public bool EnableLogger { get; set; } = true;
[Description("Player logger settings / 玩家日志保存路径")]
public string PlayerLogPath { get; set; } = Path.Combine(PathManager.Configs.FullName ?? Environment.CurrentDirectory, "/JoinLogs");
[Description("Management logger settings / 管理日志保存路径")]
public string AdminLogPath { get; set; } = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "/AdminLogs");
/// /////////////////////////////////////////////////
[Description("Is 207 harmless? / 是否开启207(可乐)无害?")]
public bool Harmless207 { get; set; } = true;
[Description("Is 1853 harmless? / 是否开启1853(洗手液)无害?")]
public bool Harmless1853 { get; set; } = true;
/// /////////////////////////////////////////////////
[Description("SCP静止回血")]
public bool EnableHealSCP { get; set; } = true;
[Description("等待多少秒后开始回血")]
public float HealSCPSecend { get; set; } = 6;
[Description("受伤检测")]
public float HealATKSecend { get; set; } = 2;
[Description("回血量")]
public int HealSCPQuantity { get; set; } = 2;
/// /////////////////////////////////////////////////
[Description("开启硬币抽卡?")]
public bool Coin { get; set; } = true;
/// /////////////////////////////////////////////////
[Description("开启回合结束友伤?")]
public bool EnableFriendFire { get; set; } = true;
}
}