

A Resonite BepInEx library (not a standalone mod) that provides commonly-used hooks and events for other BepInEx mods. This library simplifies mod development by offering ready-to-use events like OnEngineReady.
ResoniteModding-BepisResoniteWrapper-1.0.0.zip) from the Releases page.plugins folder to your BepInEx folder in your Resonite installation directory:
C:\Program Files (x86)\Steam\steamapps\common\Resonite\BepInEx\.csproj file:<PackageReference Include="ResoniteModding.BepisResoniteWrapper" Version="1.0.*" />
thunderstore.toml:[package.dependencies]
ResoniteModding-BepisResoniteWrapper = "1.0.0"
Subscribe to events in your BepInEx plugin:
using BepisResoniteWrapper;
public class MyMod : BasePlugin
{
public override void Load()
{
// Subscribe to the OnEngineReady event
ResoniteHooks.OnEngineReady += OnEngineReady;
}
private void OnEngineReady()
{
// The Resonite engine is now fully initialized
// Safe to access FrooxEngine classes and functionality
Log.LogInfo("Engine is ready with version: " + Engine.Current.VersionString);
}
}
OnEngineReady - Fired when the Resonite engine has finished.
Engine.CurrentTo add new hooks to this library:
BepisResoniteWrapper/Hooks/ folderResoniteHooks class in Api.csEngineReadyHook.cs:
[HarmonyPatchCategory] attribute for organization[HarmonyPatch] to target the method to hookResoniteHooks