-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathIPluginManager.cs
More file actions
34 lines (30 loc) · 848 Bytes
/
IPluginManager.cs
File metadata and controls
34 lines (30 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using Torch.API.Plugins;
using VRage.Collections;
using VRage.Plugins;
namespace Torch.API.Managers
{
/// <summary>
/// API for the Torch plugin manager.
/// </summary>
public interface IPluginManager : IManager, IEnumerable<ITorchPlugin>
{
/// <summary>
/// Fired when plugins are loaded.
/// </summary>
event Action<IReadOnlyCollection<ITorchPlugin>> PluginsLoaded;
/// <summary>
/// Collection of loaded plugins.
/// </summary>
IReadOnlyDictionary<Guid, ITorchPlugin> Plugins { get; }
/// <summary>
/// Updates all loaded plugins.
/// </summary>
void UpdatePlugins();
/// <summary>
/// Load plugins.
/// </summary>
void LoadPlugins();
}
}