2017-06-01 13:42:28 -04:00
|
|
|
|
using System.Collections.Generic;
|
2018-04-08 14:48:40 -04:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-04-08 02:44:42 -04:00
|
|
|
|
using SharedLibraryCore.Objects;
|
|
|
|
|
using SharedLibraryCore.Services;
|
|
|
|
|
using SharedLibraryCore.Configuration;
|
2018-05-28 21:30:31 -04:00
|
|
|
|
using System.Reflection;
|
2017-05-26 18:49:27 -04:00
|
|
|
|
|
2018-04-08 02:44:42 -04:00
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
2017-05-26 18:49:27 -04:00
|
|
|
|
{
|
|
|
|
|
public interface IManager
|
|
|
|
|
{
|
2018-03-06 02:22:19 -05:00
|
|
|
|
Task Init();
|
2018-08-27 18:07:54 -04:00
|
|
|
|
void Start();
|
2017-05-26 18:49:27 -04:00
|
|
|
|
void Stop();
|
2018-10-06 12:47:14 -04:00
|
|
|
|
ILogger GetLogger(int serverId);
|
2017-09-29 22:42:24 -04:00
|
|
|
|
IList<Server> GetServers();
|
|
|
|
|
IList<Command> GetCommands();
|
2017-06-12 17:47:31 -04:00
|
|
|
|
IList<Helpers.MessageToken> GetMessageTokens();
|
2017-06-12 13:50:00 -04:00
|
|
|
|
IList<Player> GetActiveClients();
|
2018-03-18 22:25:11 -04:00
|
|
|
|
IConfigurationHandler<ApplicationConfiguration> GetApplicationSettings();
|
2018-03-06 02:22:19 -05:00
|
|
|
|
ClientService GetClientService();
|
2017-11-25 20:29:58 -05:00
|
|
|
|
AliasService GetAliasService();
|
|
|
|
|
PenaltyService GetPenaltyService();
|
2018-04-05 00:38:45 -04:00
|
|
|
|
IDictionary<int, Player> GetPrivilegedClients();
|
2018-04-26 02:13:04 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the event handlers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>EventHandler for the manager</returns>
|
|
|
|
|
IEventHandler GetEventHandler();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Signal to the manager that event(s) needs to be processed
|
|
|
|
|
/// </summary>
|
|
|
|
|
void SetHasEvent();
|
2018-04-08 17:50:58 -04:00
|
|
|
|
bool ShutdownRequested();
|
2018-05-28 21:30:31 -04:00
|
|
|
|
IList<Assembly> GetPluginAssemblies();
|
2018-08-03 18:10:20 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// provides a page list to add and remove from
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
IPageList GetPageList();
|
2018-09-16 16:34:16 -04:00
|
|
|
|
string Version { get;}
|
2017-05-26 18:49:27 -04:00
|
|
|
|
}
|
|
|
|
|
}
|