R2API ProcType

v1.0.2·Updated 2025-01-25

API for registering proc types

About this mod Author’s original text

R2API.ProcType - Reserve new ProcTypes

About

R2API.ProcType is a submodule for R2API that allows mod creators to reserve new ProcTypes and add them to proc chain masks.

Use Cases / Features

Custom ProcTypes can be reserved through ProcTypeAPI.

Use the provided RoR2.ProcChainMask extensions to add, remove, and check for modded Proc Types.

R2API.ProcType patches RoR2.ProcChainMask to store additional data and this data is exposed by the API. ProcTypeAPI provides the necessary methods to manipulate this data; mod creators should not need to interact with it directly.

Changelog

'1.0.2'

  • Changed bounds check and minimum proc type value to make it easier to notice when using unregistered proc type.

'1.0.1'

  • Fix NuGet package

'1.0.0'

  • Initial Release

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

bbepis-BepInExPackRiskofThunder-HookGenPatcherRiskofThunder-R2API_Core

File & checksum

Filename
R2API_ProcType-1.0.2.zip
File size
22.0 KiB