Exemple #1
0
 public Targeting(Legacy api, InjectionHost host, IClientPacketSubject client, LegacyApi.Targeting targeting)
 {
     this.api = api;
     this.api.TargetInfoReceived += HandleTargetInfoReceived;
     this.host      = host;
     this.targeting = targeting;
     client.Subscribe(PacketDefinitions.TargetCursor, HandleClientTargetCursor);
 }
        public InjectionApiBridge(Legacy infusionApi, InjectionHost injectionHost, IConsole console,
                                  PacketDefinitionRegistry packetRegistry, IClilocSource clilocSource, ISoundPlayer soundPlayer)
        {
            this.infusionApi         = infusionApi;
            this.injectionHost       = injectionHost;
            this.console             = console;
            this.packetRegistry      = packetRegistry;
            this.findType            = new FindTypeSubrutine(infusionApi, injectionHost);
            this.journal             = new Journal(1000, () => injectionHost.InjectionApi.Now(), clilocSource);
            this.equipmentSubrutines = new EquipmentSubrutines(infusionApi);
            this.useSubrutines       = new UseSubrutines(infusionApi);
            this.targeting           = new Targeting(infusionApi, injectionHost, infusionApi.Client, infusionApi.Targeting);
            this.grabbing            = new Grabbing(infusionApi, injectionHost);
            this.morphing            = new Morphing(infusionApi, packetRegistry);
            this.wavPlayer           = new WavPlayer(console, soundPlayer);
            this.gumps = new GumpSubrutines(infusionApi, infusionApi.GumpObservers, console);
            this.objectNameReceiver = new ObjectNameReceiver(infusionApi);
            this.walker             = new Walker(infusionApi);
            this.menus = new Menus(infusionApi.DialogBoxObservers);

            infusionApi.JournalSource.NewMessageReceived += (sender, entry) => journal.Add(entry);

            itemObservers = new ItemObservers(infusionApi.Server, infusionApi.Client, packetRegistry);
        }
 public void Open(InjectionRuntime runtime, InjectionApiUO injectionApi, Legacy infusionApi, InjectionHost host) /*do nothing*/ }
Exemple #4
0
 public Grabbing(Legacy api, InjectionHost host)
 {
     this.api  = api;
     this.host = host;
 }
 public FindTypeSubrutine(Legacy api, InjectionHost host)
 {
     this.api = api;
 }