feature/72-channelselection-and-character-creation #82

Merged
rainote merged 35 commits from feature/72-channelselection-and-character-creation into master 2023-11-14 19:47:01 +00:00
Showing only changes of commit e4d6f15345 - Show all commits

View file

@ -36,9 +36,9 @@ public class PacketDistributorService : IHostedService
var tempDeserializationMap = var tempDeserializationMap =
new Dictionary<OperationCode, Func<byte[], IPacket>>(); new Dictionary<OperationCode, Func<byte[], IPacket>>();
var executingAssembly = Assembly.GetExecutingAssembly(); var wonderkingAssembly = Assembly.GetAssembly(typeof(IPacket));
var packetsTypes = this.GetPacketsWithId(executingAssembly); var packetsTypes = this.GetPacketsWithId(wonderkingAssembly);
var packetHandlers = this.GetAllPacketHandlersWithId(executingAssembly); var packetHandlers = this.GetAllPacketHandlersWithId(Assembly.GetExecutingAssembly());
this._packetHandlersInstantiation = new ConcurrentDictionary<OperationCode, object>(); this._packetHandlersInstantiation = new ConcurrentDictionary<OperationCode, object>();
packetHandlers.ForEach(x => packetHandlers.ForEach(x =>
{ {