fix: fix toggle soulshot method

This commit is contained in:
k0t9i
2023-02-10 19:00:56 +04:00
parent 81e26a7e52
commit 7276b24249
22 changed files with 261 additions and 70 deletions

View File

@@ -9,18 +9,18 @@ using System.Threading.Tasks;
namespace Client.Domain.Service
{
public class ItemHander : EntityHandler<BaseItem>
public class ItemHander : EntityHandler<ItemInterface>
{
public override void OnCreate(BaseItem entity)
public override void OnCreate(ItemInterface entity)
{
eventBus.Publish(new ItemCreatedEvent(entity));
}
public override void OnDelete(BaseItem entity)
public override void OnDelete(ItemInterface entity)
{
eventBus.Publish(new ItemDeletedEvent(entity.Id));
}
public ItemHander(EntityFactoryInterface<BaseItem> factory, EventBusInterface eventBus) : base(factory)
public ItemHander(EntityFactoryInterface<ItemInterface> factory, EventBusInterface eventBus) : base(factory)
{
this.eventBus = eventBus;
}