refactor: create only new entity

This commit is contained in:
k0t9i
2023-11-11 14:33:22 +04:00
parent 63833745b6
commit 129381e13c
9 changed files with 36 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ namespace Client.Domain.Service
eventBus.Publish(new HeroDeletedEvent());
}
public HeroHandler(EntityFactoryInterface<Hero> factory, EventBusInterface eventBus, ExperienceHelperInterface experienceHelper) : base(factory)
public HeroHandler(EntityFactoryInterface<Hero> factory, EntityFactoryInterface<Entity> entityFactory, EventBusInterface eventBus, ExperienceHelperInterface experienceHelper) : base(factory, entityFactory)
{
this.eventBus = eventBus;
this.experienceHelper = experienceHelper;