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.Interfaces
NuGet package to your project. - Add the dependency
reloaded.universal.redirector
toModDependencies
in yourModConfig.json
. - In your
Mod()
entry point, acquire the Controller_modLoader.GetController<IRedirectorController>()
.