Snitch API
Consume this API
Section titled “Consume this API”The whole API is one file. Copy Snitch.cs into your project - that is the supported way,
and it means there is no extra assembly to ship and no version to keep in step.
<Compile Include="path\to\Snitch.cs" />[assembly: MelonOptionalDependencies("Snitch")]Every call is a no-op that returns a default when Snitch is not installed, and binds by itself when it is, so you can ship this unconditionally. Registrations made before the host loads are replayed once it does.
There is also a Snitch.Api project in the repository if you would rather reference an assembly
than compile the file. No release publishes that DLL, so you would be building it yourself.
A worked example lives in ScheduleOne-SnitchExample.
About this reference
Section titled “About this reference”Generated from Snitch.Api/Snitch.cs at v1.6.2.
6 public types, 40 members, 65% carry a documentation comment.