This commit is contained in:
3cxc
2025-12-25 18:21:46 +08:00
parent 990bd00aba
commit 9ab2bd7c86
16 changed files with 1060 additions and 0 deletions

89
Configs/Config.cs Normal file
View File

@@ -0,0 +1,89 @@
using LabApi.Loader.Features.Paths;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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("Logger module settings / 日志保存路径")]
public string LoggerSavePath { get; set; } = Path.Combine(PathManager.Configs.FullName ?? Environment.CurrentDirectory, @"JoinLogs.txt");
[Description("管理日志地址")]
public string AdminLogPath { get; set; } = $"{Environment.GetFolderPath(Environment.SpecialFolder.Desktop)}\\Admins.txt";
/// /////////////////////////////////////////////////
[Description("Is 207 harmless? / 是否开启207(可乐)无害?")]
public bool harmless_207 { get; set; } = true;
[Description("Is 1853 harmless? / 是否开启1853(洗手液)无害?")]
public bool harmless_1853 { get; set; } = true;
}
}