Exemple #1
0
 public Combo(
     Key key,
     ConfigInit config,
     IServiceContext context)
     : base(context, key)
 {
     this.context   = context;
     this.Config    = config;
     TargetSelector = context.TargetSelector;
     Inventory      = context.Inventory;
     Prediction     = context.Prediction;
 }
Exemple #2
0
        protected override void OnActivate()
        {
            Config = new ConfigInit();
            var key = KeyInterop.KeyFromVirtualKey((int)Config.Key.Value.Key);

            Config.Key.Item.ValueChanged += HotkeyChanged;

            OrbwalkerMode = new Combo(key, Config, context);


            context.Orbwalker.RegisterMode(OrbwalkerMode);
        }