Skip to content
Valk edited this page Sep 20, 2024 · 2 revisions

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);
}

Tip

You can specify any of the following command line arguments when running multiple instances.
top_left, top_right, bottom_left, bottom_right, middle_left, middle_right, middle_top, middle_bottom

These arguments will automatically position and resize the game window instances for you.

Clone this wiki locally