Merge branch 'staging' into session-mgr-cmp
This commit is contained in:
@@ -17,32 +17,21 @@ namespace Torch.API.Session
|
||||
/// <returns>The manager that will live in the session, or null if none.</returns>
|
||||
public delegate IManager SessionManagerFactoryDel(ITorchSession session);
|
||||
|
||||
/// <summary>
|
||||
/// Fired when the given session has been completely loaded or is unloading.
|
||||
/// </summary>
|
||||
/// <param name="session">The session</param>
|
||||
public delegate void TorchSessionLoadDel(ITorchSession session);
|
||||
|
||||
/// <summary>
|
||||
/// Manages the creation and destruction of <see cref="ITorchSession"/> instances for each <see cref="Sandbox.Game.World.MySession"/> created by Space Engineers.
|
||||
/// </summary>
|
||||
public interface ITorchSessionManager : IManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Fired when a <see cref="ITorchSession"/> has finished loading.
|
||||
/// </summary>
|
||||
event TorchSessionLoadDel SessionLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// Fired when a <see cref="ITorchSession"/> has begun unloading.
|
||||
/// </summary>
|
||||
event TorchSessionLoadDel SessionUnloading;
|
||||
|
||||
/// <summary>
|
||||
/// The currently running session
|
||||
/// </summary>
|
||||
ITorchSession CurrentSession { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Raised when any <see cref="ITorchSession"/> <see cref="ITorchSession.State"/> changes.
|
||||
/// </summary>
|
||||
event TorchSessionStateChangedDel SessionStateChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Adds the given factory as a supplier for session based managers
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user