2017-05-26 18:49:27 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2017-05-27 00:22:50 -04:00
|
|
|
|
namespace SharedLibrary.Interfaces
|
2017-05-26 18:49:27 -04:00
|
|
|
|
{
|
|
|
|
|
public interface IPlugin
|
|
|
|
|
{
|
2017-05-27 18:08:04 -04:00
|
|
|
|
Task OnLoadAsync();
|
|
|
|
|
Task OnUnloadAsync();
|
|
|
|
|
Task OnEventAsync(Event E, Server S);
|
|
|
|
|
Task OnTickAsync(Server S);
|
2017-05-26 18:49:27 -04:00
|
|
|
|
|
|
|
|
|
//for logging purposes
|
|
|
|
|
String Name { get; }
|
|
|
|
|
float Version { get; }
|
|
|
|
|
String Author { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|