Пример #1
0
        public SamplePluginWithAsync([Import] IServiceContext context, [Import] ITargetSelectorManager selector, [Import] IPrediction prediction)
        {
            this.Selector   = selector;
            this.Prediction = prediction;

            // this.Ability = new PredictionAbility(context.Owner as Hero, AbilityId.pudge_meat_hook, prediction);
        }
Пример #2
0
 public OrbwalkingMode(IServiceContext context, MenuItem <KeyBind> key)
     : base(context, key)
 {
     this.targetSelector = context.TargetSelector;
     this.frostArrows    = context.AbilityFactory.GetAbility <drow_ranger_frost_arrows>();
     context.Inventory.Attach(this);
 }
Пример #3
0
        public Core(IServiceContext context, Configuration configuration) : base(context, configuration.ComboKey)
        {
            _targetSelector = context.TargetSelector;
            _configuration  = configuration;

            _particleManager             = Context.Particle;
            _targetParticleUpdateHandler = UpdateManager.Subscribe(UpdateTargetParticle, 0, false);
        }
Пример #4
0
 public SamplePluginWithAsyncOrbwalkingMode(
     [Import] IServiceContext context)
 {
     this.Context          = context;
     this.input            = context.Input;
     this.orbwalkerManager = context.Orbwalker;
     this.targetManager    = context.TargetSelector;
 }
Пример #5
0
 public Mode(Config config, Key key) : base(config.Context, key)
 {
     this.log            = config.Log;
     this.targetSelector = config.Context.TargetSelector;
     this.owner          = config.Context.Owner;
     this.abilities      = config.Abilities;
     this.prediction     = config.Context.Prediction;
     this.menu           = config.Menu;
 }
Пример #6
0
        public OrbwalkingMode(IServiceContext context, Settings settings)
            : base(context, settings.Key)
        {
            this.settings        = settings;
            this.particleManager = this.Context.Particle;
            this.targetSelector  = context.TargetSelector;

            this.poison = new Poison(this.Owner.GetAbilityById(AbilityId.shadow_demon_shadow_poison));
        }
Пример #7
0
 public Ember([Import] IServiceContext context, [Import] ITargetSelectorManager selector, [Import] IPrediction prediction)
 {
     Me        = context.Owner as Hero;
     Selector  = selector;
     Remnant   = new PredictionAbility(Me, AbilityId.ember_spirit_fire_remnant, prediction);
     Fist      = Me.GetAbilityById(AbilityId.ember_spirit_sleight_of_fist);
     Activator = Me.GetAbilityById(AbilityId.ember_spirit_activate_fire_remnant);
     Chains    = Me.GetAbilityById(AbilityId.ember_spirit_searing_chains);
 }
Пример #8
0
 public Mode(Config config, Key key) : base(config.Context, key)
 {
     this.targetSelector        = config.Context.TargetSelector;
     this.owner                 = config.Context.Owner;
     this.abilities             = config.Abilities;
     this.prediction            = config.Context.Prediction;
     this.comboSettingsMenu     = config.MenuManager.Root.ComboSettingsMenu;
     this.comboMenu             = config.MenuManager.Root.ComboSettingsMenu.ComboMenu;
     this.orbwalkerSettingsMenu = config.MenuManager.Root.OrbwalkerSettingsMenu;
 }
Пример #9
0
        public SuperAxe(Key key, Config config, IServiceContext context)
            : base(context, key)
        {
            this.config    = config;
            targetSelector = context.TargetSelector;

            R = Owner.Spellbook.Spell4;
            W = Owner.Spellbook.SpellW;
            Q = Owner.Spellbook.SpellQ;
        }
Пример #10
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;
 }
Пример #11
0
 public StormSharp(
     Key key,
     StormSharpConfig config,
     IServiceContext context)
     : base(context, key)
 {
     this.context        = context;
     this.Config         = config;
     this.TargetSelector = context.TargetSelector;
     this.Inventory      = context.Inventory;
     this.Prediction     = context.Prediction;
 }
        public SimpleComboPlugin(IServiceContext context)
        {
            // combo example on key press without orbwalker!
            // check OrbwalkerAsync sample if u need orbwalker in combo

            this.owner            = context.Owner;
            this.inventoryManager = context.Inventory;
            this.targetSelector   = context.TargetSelector;

            this.arcLightning     = context.AbilityFactory.GetAbility <zuus_arc_lightning>();
            this.lightningBolt    = context.AbilityFactory.GetAbility <zuus_lightning_bolt>();
            this.thundergodsWrath = context.AbilityFactory.GetAbility <zuus_thundergods_wrath>();
        }
Пример #13
0
 public Ember([Import] IServiceContext context, [Import] ITargetSelectorManager selector /*, [Import] IPrediction prediction*/)
 {
     Me        = context.Owner as Hero;
     Selector  = selector;
     Remnant   = Me.GetAbilityById(AbilityId.ember_spirit_fire_remnant);
     Fist      = Me.GetAbilityById(AbilityId.ember_spirit_sleight_of_fist);
     Activator = Me.GetAbilityById(AbilityId.ember_spirit_activate_fire_remnant);
     Chains    = Me.GetAbilityById(AbilityId.ember_spirit_searing_chains);
     Fountain  =
         ObjectManager.GetEntities <Unit>()
         .FirstOrDefault(
             x => x != null && x.IsValid && x.ClassId == ClassId.CDOTA_Unit_Fountain && x.Team == Me.Team);
 }
        public OrbwalkingMode(IServiceContext context, Settings settings)
            : base(context, settings.ComboKey)
        {
            var abilities = context.AbilityFactory;

            this.hook                        = abilities.GetAbility <pudge_meat_hook>();
            this.rot                         = abilities.GetAbility <pudge_rot>();
            this.ult                         = abilities.GetAbility <pudge_dismember>();
            this.targetSelector              = context.TargetSelector;
            this.settings                    = settings;
            this.particleManager             = this.Context.Particle;
            this.hookUpdateHandler           = UpdateManager.Subscribe(this.HookHitCheck, 0, false);
            this.targetParticleUpdateHandler = UpdateManager.Subscribe(this.UpdateTargetParticle, 0, false);
        }
Пример #15
0
 protected AttackOrbwalkingMode(
     IOrbwalker orbwalker,
     ITargetSelectorManager ts,
     string name,
     uint key,
     bool hero,
     bool creep,
     bool neutral,
     bool building,
     bool deny,
     bool lasthit)
     : base(orbwalker, ts)
 {
     this.key      = key;
     this.hero     = hero;
     this.creep    = creep;
     this.neutral  = neutral;
     this.building = building;
     this.deny     = deny;
     this.lasthit  = lasthit;
     this.name     = name;
 }
Пример #16
0
 public NearMouseSelector([Import] IServiceContext context, [Import] ITargetSelectorManager manager)
     : base(context)
 {
     this.Config = new NearMouseConfig(manager.Config.Factory);
 }
Пример #17
0
 public Combo([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector)
     : base(orbwalker, targetSelector, "Combo", 32, true, false, false, false, false, false)
 {
 }
Пример #18
0
 public Support([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector)
     : base(orbwalker, targetSelector, "Support", 'G', true, false, true, true, true, false)
 {
 }
Пример #19
0
 public SampleOrbOrbwalkingModeWithAsync(IOrbwalker orbwalker, IInputManager input, ITargetSelectorManager targetSelectorManager, AbilityFactory abilityFactory)
     : base(orbwalker, input, Key.Space)
 {
     this.targetSelectorManager = targetSelectorManager;
     this.abilityFactory        = abilityFactory;
 }
Пример #20
0
 public SimplePredictionPlugin(IServiceContext context)
 {
     this.targetManager = context.TargetSelector;
     this.hook          = context.AbilityFactory.GetAbility <pudge_meat_hook>();
 }
Пример #21
0
 public Push([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector)
     : base(orbwalker, targetSelector, "Push", 'T', false, true, false, true, false, true)
 {
 }
Пример #22
0
 public Farm([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector)
     : base(orbwalker, targetSelector, "Farm", 'V', false, false, false, false, true, true)
 {
 }
Пример #23
0
 public AutoAttackModeSelector(Unit owner, ITargetSelectorManager manager, AutoAttackModeConfig config)
 {
     this.Owner   = owner;
     this.Manager = manager;
     this.Config  = config;
 }
Пример #24
0
 protected AutoAttackMode(IOrbwalker orbwalker, ITargetSelectorManager targetSelector)
     : base(orbwalker)
 {
     this.TargetSelector = targetSelector;
     this.TargetSelector.Activate();
 }
 public SampleOrbOrbwalkingModeWithAsync(IServiceContext context)
     : base(context, Key.Space)
 {
     this.targetSelectorManager = context.TargetSelector;
     this.abilityFactory        = context.AbilityFactory;
 }