This sample illustrates how to:
- Add custom UI
- Add a background service
- Access and update when the current game view changes
This sample uses the MSBuild integration supplied by Raid.Toolkit.Extensibility.Tasks. This requires a manifest JSON file with RTKExtensionManifest set as its BuildAction. This provides the build tooling all the information required to generate a valid RTK extension DLL.
This project is already configured to copy the output extension to %USERPROFILE%\AppData\Local\RaidToolkit\Extensions which will be automatically loaded whenever RTK is started.
To test your extension, simply:
- Exit RTK (to release any lock on a previous build)
- Build the solution in VS/VSCode
- Restart RTK
- Profit! Your extension should now be loaded!
The .rtk.extension.json file contains a manifest that describes your extension as well as list of types required by your extension to run.
To discover which types you want to generate code for, use a tool like
il2cppdumperto browse the full set of classes available.
The entrypoint for any extension is an implementation of IExtensionPackage. This interface provides access to the basic lifecycle events for any extension loaded into RTK.