Files
sbox-public/engine/Sandbox.Engine/Scene/Events/ISceneLoadingEvents.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

23 lines
593 B
C#

namespace Sandbox;
/// <summary>
/// Allows listening to events related to scene loading
/// </summary>
public interface ISceneLoadingEvents : ISceneEvent<ISceneLoadingEvents>
{
/// <summary>
/// Called before the loading starts
/// </summary>
void BeforeLoad( Scene scene, SceneLoadOptions options ) { }
/// <summary>
/// Called during loading. The game will wait for your task to finish
/// </summary>
Task OnLoad( Scene scene, SceneLoadOptions options ) { return Task.CompletedTask; }
/// <summary>
/// Loading has finished
/// </summary>
void AfterLoad( Scene scene );
}