2017-05-26 18:49:27 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-04-08 02:44:42 -04:00
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
2017-05-26 18:49:27 -04:00
|
|
|
|
{
|
|
|
|
|
public interface IPlugin
|
|
|
|
|
{
|
2017-10-16 23:47:41 -04:00
|
|
|
|
Task OnLoadAsync(IManager manager);
|
2017-06-13 18:33:47 -04:00
|
|
|
|
Task OnUnloadAsync();
|
2018-04-13 02:32:30 -04:00
|
|
|
|
Task OnEventAsync(GameEvent E, Server S);
|
2017-05-27 18:08:04 -04:00
|
|
|
|
Task OnTickAsync(Server S);
|
2017-05-26 18:49:27 -04:00
|
|
|
|
|
|
|
|
|
//for logging purposes
|
|
|
|
|
String Name { get; }
|
|
|
|
|
float Version { get; }
|
|
|
|
|
String Author { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|