feat: create creature interface

This commit is contained in:
k0t9i
2023-01-31 15:14:19 +04:00
parent b8b92b7cf8
commit 31febdd341
16 changed files with 279 additions and 275 deletions

View File

@ -17,11 +17,11 @@ namespace Client.Domain.Service
{
entity.Level = npcInfoHelper.GetLevel(entity.NpcId);
entity.AggroRadius = npcInfoHelper.GetAggroRadius(entity.NpcId);
eventBus.Publish(new NpcCreatedEvent(entity));
eventBus.Publish(new CreatureCreatedEvent(entity));
}
public override void OnDelete(NPC entity)
{
eventBus.Publish(new NpcDeletedEvent(entity.Id));
eventBus.Publish(new CreatureDeletedEvent(entity.Id));
}
public NpcHandler(EntityFactoryInterface<NPC> factory, EventBusInterface eventBus, NpcInfoHelperInterface npcInfoHelper) : base(factory)