mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-05 20:40:29 -08:00
Add service extensions
This commit is contained in:
18
mod/Jailbreak.Lasers/MarkerServiceExtensions.cs
Normal file
18
mod/Jailbreak.Lasers/MarkerServiceExtensions.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Jailbreak.Drawable.Markers;
|
||||
using Jailbreak.Public.Extensions;
|
||||
using Jailbreak.Public.Mod.Draw;
|
||||
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Jailbreak.Drawable;
|
||||
|
||||
public static class MarkerServiceExtensions
|
||||
{
|
||||
public static void AddLasers(this IServiceCollection collection)
|
||||
{
|
||||
collection.AddSingleton<IDrawableFactory, DrawableFactory>();
|
||||
|
||||
collection.AddPluginBehavior<IMarkerService, MarkerBehavior>();
|
||||
collection.AddPluginBehavior<MarkerListener>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user