mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-28 19:43:50 +00:00
25 lines
822 B
C#
25 lines
822 B
C#
using Impostor.Api.Events;
|
|
using Impostor.Api.Plugins;
|
|
using Impostor.Plugins.Example.Handlers;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace Impostor.Plugins.Example
|
|
{
|
|
public class ExamplePluginStartup : IPluginStartup
|
|
{
|
|
public void ConfigureHost(IHostBuilder host)
|
|
{
|
|
}
|
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IEventListener, GameEventListener>();
|
|
services.AddSingleton<IEventListener, ClientEventListener>();
|
|
services.AddSingleton<IEventListener, PlayerEventListener>();
|
|
services.AddSingleton<IEventListener, MeetingEventListener>();
|
|
services.AddSingleton<IEventListener, AnnouncementsListener>();
|
|
}
|
|
}
|
|
}
|