SecretAPI.SourceGenerators
3.5.0-beta1
This is a prerelease version of SecretAPI.SourceGenerators.
dotnet add package SecretAPI.SourceGenerators --version 3.5.0-beta1
NuGet\Install-Package SecretAPI.SourceGenerators -Version 3.5.0-beta1
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.5.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SecretAPI.SourceGenerators" Version="3.5.0-beta1" />
<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.5.0-beta1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SecretAPI.SourceGenerators, 3.5.0-beta1"
#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.5.0-beta1
#: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.5.0-beta1&prerelease
#tool nuget:?package=SecretAPI.SourceGenerators&version=3.5.0-beta1&prerelease
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.
Dependencies
- SecretAPI relies on Harmony to implement features
- You can find the latest version here
- You should download Harmony-Fat and put the 0harmony.dll (found in /net48) into your dependencies folder!
Features
- CustomPlayerEffect: Create custom status effects using the base-game system.
- BlastResistance: Grants 0.5% resistance to explosion damage
- Depleted: Disables stamina and its regen
- Energized: Disables stamina usage
- IRegister: Handle auto registering certain plugin features inheriting this interface and then running
IRegister.RegisterAll(Assembly)in your plugin's initialize 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.
- PrefabStore and PrefabManager: Designed to help access prefabs in a clean way
- Extensions:
- CodeMatcherExtensions: Extensions related to
HarmonyLib.CodeMatcher. - CollectionExtensions: Extensions to provide utility for collections like lists and arrays.
- MirrorExtensions: Extensions providing help with fake-syncing
SyncVar,SyncListandRpc - ReflectionExtensions: Extensions related to C# Reflection
- RoomExtensions: Extensions to help with room specific tasks, like checking if a room is safe to teleport to.
- CodeMatcherExtensions: Extensions related to
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.5.0-beta1 | 98 | 10/14/2026 |
| 3.5.0-beta.3 | 69 | 10/20/2026 |
| 3.4.0 | 146 | 9/15/2026 |
| 3.3.0 | 117 | 9/5/2026 |
| 3.2.2 | 123 | 8/29/2026 |
| 3.2.1 | 119 | 8/29/2026 |
| 3.2.0 | 886 | 5/6/2026 |