SecretAPI.SourceGenerators
3.2.0
dotnet add package SecretAPI.SourceGenerators --version 3.2.0
NuGet\Install-Package SecretAPI.SourceGenerators -Version 3.2.0
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="SecretAPI.SourceGenerators" Version="3.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SecretAPI.SourceGenerators" Version="3.2.0" />
<PackageReference Include="SecretAPI.SourceGenerators" />
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 SecretAPI.SourceGenerators --version 3.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SecretAPI.SourceGenerators, 3.2.0"
#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 SecretAPI.SourceGenerators@3.2.0
#: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=SecretAPI.SourceGenerators&version=3.2.0
#tool nuget:?package=SecretAPI.SourceGenerators&version=3.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SecretAPI 
- SecretAPI is a plugin that extends LabAPI by providing extra features to help devs.
Features
- CollectionExtensions: Extensions to provide utility for collections like lists and arrays.
- RoomExtensions: Extensions to help with room specific tasks, like checking if a room is safe to teleport to.
- HarmonyExtensions: Extensions to provide more utility to Harmony patching, like adding some updated Harmony features which can't be utilised, i.e. patching by category.
- CustomPlayerEffect: Create custom status effects using the base-game system.
- IRegister: Handle auto registering certain plugin features inheriting this interface and then running
IRegister.RegisterAll(Assembly)in your plugin's initialise method. - CallOnLoadAttribute: Allows calling static initialize methods on enable via
CallOnLoadAttribute.Load(Assembly) - CustomSetting: Server Specific Settings without the management hassle, control everything for 1 setting in 1 class, including permissions. A better setting system overall.
Examples
You can find examples inside the SecretAPI.Examples folder above, this contains some example settings, patches using categories and some more.
Source Generation
- SecretAPI includes a SourceGenerator via the Nuget package
SecretAPI.SourceGenerators- This will generate
SecretApiGenerated.cswhich can be used withCallOn(Un)LoadAttribute
- This will generate
Support
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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 |
|---|---|---|
| 3.2.0 | 87 | 5/6/2026 |