
- Now TorchBase and TorchSession can each have seperate managers - Managers now have a Dispose function that's run on shutdown
25 lines
602 B
C#
25 lines
602 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Torch.API.Managers
|
|
{
|
|
/// <summary>
|
|
/// Base interface for Torch managers.
|
|
/// </summary>
|
|
public interface IManager
|
|
{
|
|
/// <summary>
|
|
/// Initializes the manager. Called once this manager's dependencies have been initialized.
|
|
/// </summary>
|
|
void Init();
|
|
|
|
/// <summary>
|
|
/// Disposes the manager. Called before this manager's dependencies are disposed.
|
|
/// </summary>
|
|
void Dispose();
|
|
}
|
|
}
|