示例#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);
 }
示例#2
0
        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);
        }
示例#3
0
 public void Open(InjectionRuntime runtime, InjectionApiUO injectionApi, Legacy infusionApi, InjectionHost host) /*do nothing*/ }
示例#4
0
 public Grabbing(Legacy api, InjectionHost host)
 {
     this.api  = api;
     this.host = host;
 }
示例#5
0
 public FindTypeSubrutine(Legacy api, InjectionHost host)
 {
     this.api = api;
 }