示例#1
0
        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);
        }
示例#2
0
        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);
        }