Skip to content

Getting Started with REPOLib (C#)

NOTE

This page assumes you have a C# project setup for R.E.P.O. modding.
If not, first follow the guide in Developing Mods.

Installation

Reference REPOLib in your project's .csproj file:

xml
<ItemGroup>
  <PackageReference Include="Zehs.REPOLib" Version="3.*" />
</ItemGroup>

Add REPOLib as a dependency to your plugin class:

c#
[BepInDependency(REPOLib.MyPluginInfo.PLUGIN_GUID, BepInDependency.DependencyFlags.HardDependency)]
c#
[BepInPlugin("You.YourMod", "YourMod", "1.0.0")]
[BepInDependency(REPOLib.MyPluginInfo.PLUGIN_GUID, BepInDependency.DependencyFlags.HardDependency)]
public class YourMod : BaseUnityPlugin
{
    // ...
}

You are now ready to start coding!