More explanatory naming for Manager Init (Attach) and Dispose (Detach).
Torch.Client uses the registry to discover Steam's installation directory.
This commit is contained in:
@@ -38,25 +38,25 @@ namespace Torch.API.Managers
|
||||
bool RemoveManager(IManager manager);
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the dependency manager, and all its registered managers.
|
||||
/// Sorts the dependency manager, then attaches all its registered managers in <see cref="AttachOrder" />
|
||||
/// </summary>
|
||||
void Init();
|
||||
void Attach();
|
||||
|
||||
/// <summary>
|
||||
/// Disposes the dependency manager, and all its registered managers.
|
||||
/// Detaches all registered managers in <see cref="DetachOrder"/>
|
||||
/// </summary>
|
||||
void Dispose();
|
||||
void Detach();
|
||||
|
||||
/// <summary>
|
||||
/// The order that managers should be loaded in. (Dependencies, then dependents)
|
||||
/// The order that managers should be attached in. (Dependencies, then dependents)
|
||||
/// </summary>
|
||||
/// <exception cref="InvalidOperationException">When trying to determine load order before this dependency manager is initialized</exception>
|
||||
IEnumerable<IManager> LoadOrder { get; }
|
||||
IEnumerable<IManager> AttachOrder { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The order that managers should be unloaded in. (Dependents, then dependencies)
|
||||
/// The order that managers should be detached in. (Dependents, then dependencies)
|
||||
/// </summary>
|
||||
/// <exception cref="InvalidOperationException">When trying to determine unload order before this dependency manager is initialized</exception>
|
||||
IEnumerable<IManager> UnloadOrder { get; }
|
||||
IEnumerable<IManager> DetachOrder { get; }
|
||||
}
|
||||
}
|
||||
|
@@ -12,13 +12,13 @@ namespace Torch.API.Managers
|
||||
public interface IManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes the manager. Called once this manager's dependencies have been initialized.
|
||||
/// Attaches the manager to the session. Called once this manager's dependencies have been attached.
|
||||
/// </summary>
|
||||
void Init();
|
||||
void Attach();
|
||||
|
||||
/// <summary>
|
||||
/// Disposes the manager. Called before this manager's dependencies are disposed.
|
||||
/// Detaches the manager from the session. Called before this manager's dependencies are detached.
|
||||
/// </summary>
|
||||
void Dispose();
|
||||
void Detach();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user