SideHustle API
Consume this API
Section titled “Consume this API”SideHustle exposes its API from its own assembly - there is no separate API package and nothing to
copy. Reference SideHustle.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="SideHustle"> <HintPath>$(ModsDirectory)\SideHustle.dll</HintPath> <Private>false</Private></Reference>[assembly: MelonOptionalDependencies("SideHustle")]Because you are calling the mod directly, guard your calls: when SideHustle is absent the type is not there either. Keep the calls behind a check that runs only once you know it loaded.
About this reference
Section titled “About this reference”Generated from Api/API.cs at v2.4.2.
1 public types, 5 members, 100% carry a documentation comment.