Changed terminate into unload

This commit is contained in:
2026-01-30 20:42:33 -05:00
parent 82fa3a02c2
commit 6370a70e77
6 changed files with 10 additions and 11 deletions

View File

@@ -20,8 +20,7 @@ public sealed class Base : Game
}
/// <summary>
/// Initialize() is called when the program starts. It can be confusing because Initialize() in hooks and events is actually LoadContent().
/// This is because Initialize() has little utility and there is no reason to
/// Initialize() is called when the program starts. Goes before LoadContent(). And prepares the kernel for use.
/// </summary>
/// <remarks> It is recommended not to load content in Initialize()</remarks>
protected override void Initialize() {
@@ -65,7 +64,7 @@ public sealed class Base : Game
/// </summary>
/// <remarks> This event may not trigger if the program is force closed.</remarks>
protected override void EndRun() {
foreach (AwperativeHook hook in Awperative.EventHooks) hook.Terminate();
foreach (Scene scene in Awperative.LoadedScenes) scene.Terminate();
foreach (AwperativeHook hook in Awperative.EventHooks) hook.Unload();
foreach (Scene scene in Awperative.LoadedScenes) scene.Unload();
}
}