fix: fix toggle soulshot method
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -268,7 +268,7 @@ namespace Client.Domain.Service
|
||||
|
||||
public void Handle(ItemDeletedEvent @event)
|
||||
{
|
||||
items.Remove(@event.Id, out BaseItem? value);
|
||||
items.Remove(@event.Id, out ItemInterface? value);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -282,7 +282,7 @@ namespace Client.Domain.Service
|
||||
private ConcurrentDictionary<uint, CreatureInterface> creatures = new ConcurrentDictionary<uint, CreatureInterface>();
|
||||
private ConcurrentDictionary<uint, Drop> drops = new ConcurrentDictionary<uint, Drop>();
|
||||
private ConcurrentDictionary<uint, Skill> skills = new ConcurrentDictionary<uint, Skill>();
|
||||
private ConcurrentDictionary<uint, BaseItem> items = new ConcurrentDictionary<uint, BaseItem>();
|
||||
private ConcurrentDictionary<uint, ItemInterface> items = new ConcurrentDictionary<uint, ItemInterface>();
|
||||
private readonly OutgoingMessageBuilderInterface outgoingMessageBuilder;
|
||||
private readonly TransportInterface transport;
|
||||
}
|
||||
|
Reference in New Issue
Block a user