Skip to content

Inkorporated API

Inkorporated exposes its API from its own assembly - there is no separate API package and nothing to copy. Reference Inkorporated.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="Inkorporated">
<HintPath>$(ModsDirectory)\Inkorporated.dll</HintPath>
<Private>false</Private>
</Reference>
[assembly: MelonOptionalDependencies("Inkorporated")]

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

A worked example lives in ScheduleOne-InkorporatedExample.

Generated from API.cs at v1.1.3.

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