You are viewing a potentially older version of this package. View all versions.
tristanmcpherson-R2API-2.3.20 icon


A modding API for Risk of Rain 2

Date uploaded a year ago
Version 2.3.20
Download link
Downloads 17963
Dependency string tristanmcpherson-R2API-2.3.20

This mod requires the following mods to function

bbepis-BepInExPack-5.4.9 icon

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.9
RiskofThunder-HookGenPatcher-1.2.1 icon

MMHOOK generation at runtime.

Preferred version: 1.2.1


R2API – a modding API for Risk of Rain 2

Build Status

Note to Mod Developers

Breaking Change for next RoR2 Content Update: R2API Submodules (ResourceAPI, SurvivorAPI, etc) will be only enabled by using the R2APISubmoduleDependency attribute somewhere in your mod. As of the next update (for new BepInEx) all submodules will be enabled by default.

Example usage:

[R2APISubmoduleDependency("SurvivorAPI", "DifficultyAPI")]


R2API is designed to provide an abstraction layer in order to expose and simplify APIs to allow developers to modify
Risk of Rain 2 more easily, while still keeping mod interoperability in mind.

At it's heart, R2API is meant to be base work, which is why it doesnt include any additional in game functionality,
be it for developing or for users in general. This is by choice. A game with just R2API should feel and behave the
same as an unmodded game, the isModded flag excluded.


The latest stable version is NO LONGER included in the BepInEx Pack on Thunderstore.

> #### Bleeding Edge
> Latest bleeding edge builds of master are hosted on Azure,
> and may be downloaded using the Artifacts drop down menu.
> The contents of R2API should be extracted into the BepInEx folder.