RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.GeneralHelpers Namespace

Classes  
AssetsManager A helper class that handles registering bundles for use in a mod.
Keep an instance of this class internal or local to the mod.
BlastAttack Improvised BlastAttack from Vanilla RoR2 so that it is more helpful for modding.
DefaultData Static class containing the default set of values for some helpers to work, although an option to provide custom data is supported.
Mainly for doing shortcuts as long as work flow is followed.
DropletGenerator A helper that allows listening to function keys to generate pickup droplets in-game.
Press F3 to generate a random white item (or essence).
Press F4 to generate a random green item (or essence).
Press F5 to generate a random red item (or essence).
Press F6 to generate a random orange item (or essence).
Press F7 to generate a random blue (both the item and equipment variants) item (or essence).
Press F8 to generate a random yellow item (or essence).
Extensions Extensions related to Components defined by Risk of Rain 2.
GenericContentPackProvider An Abstract class for easily implementing Content Pack Providers. It is used for adding new CharacterBody and CharacterMaster GameObjects.
It is recommended to use R2API for adding other objects like Projectiles, etc.
Instances Helper static class that allows the fetching of an instance without the need to write long codes.
Checks are done by this helper and should output a debug log in the console.
MaterialController A controller for materials so that properties can be inspected and modified.
Attach this component to a Game Object and let it do its magic.
It will attempt to find the correct shader controller from the Renderer’s material, attach the said shader controller if found.
After the proper shader controller is found, this component will destroy itself.
MinionExtensions Useful extensions related to Minions.
MultiplayerTest A helper that can enable and disable Multiplayer Testing. Be sure to not enable this in Awake of a mod on release.
SoundPlayer A helper class that allows playing sounds easily with just the WWise Event ID and a Keybind.
Structs  
AssetsManager.BundleInfo A data structure that holds the information about the bundle.
This is used by the AssetsManager.
BlastAttack.HitPointAndResult Combination of BlastAttack.HitPoint and BlastAttack.Result.
SoundPlayer.EventPosterKey Represents the data structure for a keybind that is responsible for posting WWise sound events.
Enums  
AssetsManager.BundleType This is used to identify the type of the bundle for differentiation in registration process.