mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-25 14:49:28 -05:00
23 lines
596 B
C#
23 lines
596 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 ) { }
|
|
}
|