Skip to content

Mod Loader

Valk edited this page Sep 19, 2024 · 4 revisions

Mods have the ability to swap out game assets and run C# scripts. You can find an example mod repository here.

Important

The mod loader currently cannot handle loading more than one mod with scripts. See https://github.com/ValksGodotTools/Template/issues/15 for more info on this.

Tips

Tip

To run code just before the game exits, you can subscribe to the OnQuit event.

// This is an async function because you way want to await certain processes before the game exists
Global.Services.Get<Global>().OnQuit += async () =>
{
    // Execute your code here
    await Task.FromResult(1);
}
Clone this wiki locally