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); }
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); }