RL2.API is a modding API for Rogue Legacy 2. It requires RL2.ModLoader to function.
- Follow the installation guide for RL2.ModLoader
- Download the latest release of RL2.API
- Unpack the
.zip
into theGameInstallation\Rogue Legacy 2_Data\Mods
directory - Run the game once to let the mod loader recognise the mod
- Make sure you installed RL2.ModLoader
- Clone this repository
- Run
setup.sh
- This will download and run RL2.ModLoader.DevSetup
- Build the project either via Visual Studio, or
dotnet build -c Release
- This will build the mod and copy it to the proper directory, so that it's ready to be enabled in game.
- Obtain
RL2.API.dll
andRL2.API.xml
by following either the "Installation" or "Build from source" section. - Add it as a reference in your
.csproj
like this:
<ItemGroup>
<Reference Include="YourPath\To\RL2.API.dll" />
</ItemGroup>