mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-02 03:18:23 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
23 lines
593 B
C#
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 );
|
|
}
|