public LoginServer() : base(InternalSettings.myLoginServerPort.Port) { myFactory = new PacketFactory(); myFactory.AssignProcessor(HandleLogin, typeof(LoginPacket)); myFactory.AssignProcessor(HandleDisconnect, typeof(DisconnectPacket)); }
public void AssignProcessor(PacketProcessor MyProc, Type T) { myFactory.AssignProcessor(MyProc, T); }