feat: add events for drop and chat message

This commit is contained in:
k0t9i
2023-01-31 16:14:13 +04:00
parent 31febdd341
commit d2b20e0666
15 changed files with 101 additions and 69 deletions

View File

@@ -5,11 +5,11 @@ using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Client.Application.ViewModels;
using Client.Domain.Events;
using Client.Domain.Factories;
using Client.Domain.Parsers;
using Client.Domain.Transports;
using Client.Domain.ViewModels;
using Microsoft.Extensions.DependencyInjection;
namespace Client
@@ -64,7 +64,7 @@ namespace Client
private void SubscribeAllHandlers()
{
var viewModel = serviceProvider.GetRequiredService<MainViewModelInterface>();
var viewModel = serviceProvider.GetRequiredService<MainViewModel>();
eventBus.Subscrbe((EventHandlerInterface<HeroCreatedEvent>)viewModel);
eventBus.Subscrbe((EventHandlerInterface<HeroDeletedEvent>)viewModel);
eventBus.Subscrbe((EventHandlerInterface<CreatureCreatedEvent>)viewModel);