MengXinSheQu.Library 1.0.1

dotnet add package MengXinSheQu.Library --version 1.0.1
                    
NuGet\Install-Package MengXinSheQu.Library -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MengXinSheQu.Library" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MengXinSheQu.Library" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="MengXinSheQu.Library" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MengXinSheQu.Library --version 1.0.1
                    
#r "nuget: MengXinSheQu.Library, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MengXinSheQu.Library@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MengXinSheQu.Library&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=MengXinSheQu.Library&version=1.0.1
                    
Install as a Cake Tool

MengXinSheQu.Library

License .NET Version .NET Version

MengXinSheQu.Library 是我们萌新社区服务器在插件开发时常用到的代码库。

该库提供了从事件系统、Json/二进制读取、日志记录等类,极大地提升了服务器端的开发效率。

我们也不打算藏在掖着了,我们决定直接开源。


主要特性

功能模块 说明
LabApiEvent 像是PluginAPI(NWAPI)一样的特性注册事件
LabApiHandler 声明这个类可被当成LabApiEvent集测试
RichtextBuilder 快速构建带颜色、大小、加粗等标签的UnityTMP富文本字符串
自注册事件接口 实现 IEventHandler 接口即可自动被注册/注销
枚举处理 通过EnumHelper获取枚举所有项
Json处理 高性能序列化辅助器,使用Newtonsoft.Json快速处理Json
常用正则处理 预编译正则表达式(富文本,Hint大小写纠正)
文件化日志 基于文件的日志记录器
标准化 Unity 组件抽象类 提供 StadardBehaviour 的抽象类,通过继承统一方法命名
标准化指令 基于原SCPSL的指令接口制作的抽象化父命令/命令

后记

这个库会随着我们服的更新逐步完善,因为世上没有不透风的墙,插件早晚都会被泄露。

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 119 4/12/2026
1.0.0 107 4/10/2026