From 19aaedd664e69a6459788c062f88baedc07899b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 26 Dec 2021 23:06:27 +0100 Subject: [PATCH] feat: register responders for character actions --- .../Extensions/ServiceCollectionExtensions.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs b/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs index ee14349..e8c2427 100644 --- a/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs +++ b/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs @@ -8,8 +8,12 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using NosSmooth.Core.Commands; using NosSmooth.Core.Extensions; -using NosSmooth.Game.Events.Handlers; using NosSmooth.Game.Apis; +using NosSmooth.Game.Events.Core; +using NosSmooth.Game.Events.Players; +using NosSmooth.Game.PacketHandlers.Characters; +using NosSmooth.Game.PacketHandlers.Entities; +using NosSmooth.Game.PacketHandlers.Login; namespace NosSmooth.Game.Extensions; @@ -31,11 +35,17 @@ public static class ServiceCollectionExtensions .TryAddSingleton(); serviceCollection.TryAddSingleton(); - // TODO: add events + serviceCollection + .AddPacketResponder() + .AddPacketResponder() + .AddPacketResponder() + .AddPacketResponder() + .AddPacketResponder(); serviceCollection .AddTransient() .AddTransient(); + return serviceCollection; } -- 2.48.1