Programmer Usage
Tip
Redirector uses Reloaded Dependency Injection to expose an API. It's recommended to read that first if you haven't before already.
Anyway, in short:
- Add the
Reloaded.Universal.Redirector.InterfacesNuGet package to your project. - Add the dependency
reloaded.universal.redirectortoModDependenciesin yourModConfig.json. - In your
Mod()entry point, acquire the Controller_modLoader.GetController<IRedirectorController>().