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

@@ -33,7 +33,7 @@ namespace Client.Domain.Service
@event.Hero.Target = target;
}
public NpcHandler(EntityFactoryInterface<NPC> factory, EventBusInterface eventBus, NpcInfoHelperInterface npcInfoHelper) : base(factory)
public NpcHandler(EntityFactoryInterface<NPC> factory, EntityFactoryInterface<Entity> entityFactory, EventBusInterface eventBus, NpcInfoHelperInterface npcInfoHelper) : base(factory, entityFactory)
{
this.eventBus = eventBus;
this.npcInfoHelper = npcInfoHelper;