public GameNetwork(Dalamud dalamud, SigScanner scanner) { this.dalamud = dalamud; Address = new GameNetworkAddressResolver(); Address.Setup(scanner); Log.Verbose("===== G A M E N E T W O R K ====="); Log.Verbose("ProcessZonePacket address {ProcessZonePacket}", Address.ProcessZonePacket); this.processZonePacketHook = new Hook <ProcessZonePacketDelegate>(Address.ProcessZonePacket, new ProcessZonePacketDelegate(ProcessZonePacketDetour), this); }
public GameNetwork(SigScanner scanner) { Address = new GameNetworkAddressResolver(); Address.Setup(scanner); Log.Verbose("===== G A M E N E T W O R K ====="); Log.Verbose("ProcessZonePacketDown address {ProcessZonePacketDown}", Address.ProcessZonePacketDown); Log.Verbose("ProcessZonePacketUp address {ProcessZonePacketUp}", Address.ProcessZonePacketUp); this.processZonePacketDownHook = new Hook <ProcessZonePacketDownDelegate>(Address.ProcessZonePacketDown, new ProcessZonePacketDownDelegate(ProcessZonePacketDownDetour), this); this.processZonePacketUpHook = new Hook <ProcessZonePacketUpDelegate>(Address.ProcessZonePacketUp, new ProcessZonePacketUpDelegate(ProcessZonePacketUpDetour), this); }