Skip to content

Personnel API

Personnel exposes its API from its own assembly - there is no separate API package and nothing to copy. Reference Personnel.dll from your installed copy of the mod and mark it optional, or your mod will fail to load for anyone who does not have it.

<Reference Include="Personnel">
<HintPath>$(ModsDirectory)\Personnel.dll</HintPath>
<Private>false</Private>
</Reference>
[assembly: MelonOptionalDependencies("Personnel")]

Because you are calling the mod directly, guard your calls: when Personnel is absent the type is not there either. Keep the calls behind a check that runs only once you know it loaded.

Generated from API.cs at v2.2.0.

1 public types, 9 members, 100% carry a documentation comment.