示例#1
0
        protected override void OnActivate()
        {
            this.Config = new StormSharpConfig();
            var key = KeyInterop.KeyFromVirtualKey((int)this.Config.Key.Value.Key);

            this.Config.Key.Item.ValueChanged += this.HotkeyChanged;

            this.OrbwalkerMode = new StormSharp(key, this.Config, this.context);


            this.context.Orbwalker.RegisterMode(this.OrbwalkerMode);
        }
示例#2
0
        protected override void OnActivate()
        {
            this.Config = new StormSharpConfig();
            this.Config.Key.Item.ValueChanged += this.HotkeyChanged;

            this.OrbwalkerMode = new StormSharp(
                KeyInterop.KeyFromVirtualKey((int)this.Config.Key.Value.Key),
                this.Config,
                this.orbwalkerManager,
                this.input,
                this.inventoryManager,
                this.targetManager,
                this.prediction);

            this.orbwalkerManager.Value.RegisterMode(this.OrbwalkerMode);
        }