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;
}
}

View File

@@ -0,0 +1,81 @@
using EasyTools.Utils;
using PlayerRoles;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EasyTools.Configs
{
public class TranslateConfig
{
[Description("卡虚空自救指令_错误")]
public string RescueCommandError { get; set; } = "执行指令时发生错误,请稍后再试";
[Description("卡虚空自救指令_失败")]
public string RescueCommandFailed { get; set; } = "失败,可能指令未启用或者身份不允许等";
[Description("卡虚空自救指令_成功")]
public string RescueCommandOk { get; set; } = "成功";
[Description("聊天指令_错误")]
public string ChatCommandError { get; set; } = "发送消息时出现错误,请稍后重试";
[Description("聊天指令_失败")]
public string ChatCommandFailed { get; set; } = "发送失败,你被禁言或者信息为空或者聊天系统未启用";
[Description("聊天指令_成功")]
public string ChatCommandOk { get; set; } = "发送成功";
/// <summary>
///
/// </summary>
[Description("聊天中消息列表的标题")]
public string ChatMessageTitle { get; set; } = "消息列表:";
[Description("聊天中每种消息的名字")]
public Dictionary<ChatMessage.MessageType, string> MessageTypeName { get; set; } = new()
{
{ ChatMessage.MessageType.AdminPrivateChat, "管理私聊" },
{ ChatMessage.MessageType.BroadcastChat, "公共消息" },
{ ChatMessage.MessageType.TeamChat, "队友消息" },
};
/// <summary>
///
/// </summary>
[Description("聊天系统自定义玩家角色名称")]
public Dictionary<RoleTypeId, string> ChatSystemRoleTranslation { get; set; } = new Dictionary<RoleTypeId, string>
{
{RoleTypeId.ClassD , "D级人员"},
{RoleTypeId.FacilityGuard , "保安" },
{RoleTypeId.ChaosConscript , "混沌征召兵"},
{RoleTypeId.ChaosMarauder , "混沌掠夺者"},
{RoleTypeId.ChaosRepressor , "混沌压制者"},
{RoleTypeId.ChaosRifleman , "混沌步枪兵"},
{RoleTypeId.NtfCaptain , "九尾狐指挥官"},
{RoleTypeId.NtfPrivate , "九尾狐列兵"},
{RoleTypeId.NtfSergeant , "九尾狐中士"},
{RoleTypeId.NtfSpecialist , "九尾狐收容专家"},
{RoleTypeId.Scientist , "科学家"},
{RoleTypeId.Tutorial , "教程角色"},
{RoleTypeId.Scp096 , "SCP-096" },
{RoleTypeId.Scp049 , "SCP-049" },
{RoleTypeId.Scp173 , "SCP-173" },
{RoleTypeId.Scp939 , "SCP-939" },
{RoleTypeId.Scp079 , "SCP-079" },
{RoleTypeId.Scp0492 , "SCP-049-2" },
{RoleTypeId.Scp106 , "SCP-106" },
{RoleTypeId.Scp3114 , "SCP-3114" },
{RoleTypeId.Spectator , "观察者" },
{RoleTypeId.Overwatch , "监管" },
{RoleTypeId.Filmmaker , "导演" }
};
[Description("聊天系统自定义玩家团队名称")]
public Dictionary<Team, string> ChatSystemTeamTranslation { get; set; } = new Dictionary<Team, string>
{
{Team.Dead , "旁观者" },
{Team.ClassD , "DD阵营" },
{Team.OtherAlive , "神秘阵营" },
{Team.Scientists , "博士阵营" },
{Team.SCPs , "SCP阵营" },
{Team.ChaosInsurgency , "混沌阵营" },
{Team.FoundationForces , "九尾狐阵营" },
};
}
}