Getting Started with REPOLib (C#)
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="2.*" />
</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
{
// ...
}