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); }
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); }
public Core(IServiceContext context, Configuration configuration) : base(context, configuration.ComboKey) { _targetSelector = context.TargetSelector; _configuration = configuration; _particleManager = Context.Particle; _targetParticleUpdateHandler = UpdateManager.Subscribe(UpdateTargetParticle, 0, false); }
public SamplePluginWithAsyncOrbwalkingMode( [Import] IServiceContext context) { this.Context = context; this.input = context.Input; this.orbwalkerManager = context.Orbwalker; this.targetManager = context.TargetSelector; }
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; }
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)); }
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); }
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; }
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; }
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; }
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>(); }
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); }
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; }
public NearMouseSelector([Import] IServiceContext context, [Import] ITargetSelectorManager manager) : base(context) { this.Config = new NearMouseConfig(manager.Config.Factory); }
public Combo([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector) : base(orbwalker, targetSelector, "Combo", 32, true, false, false, false, false, false) { }
public Support([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector) : base(orbwalker, targetSelector, "Support", 'G', true, false, true, true, true, false) { }
public SampleOrbOrbwalkingModeWithAsync(IOrbwalker orbwalker, IInputManager input, ITargetSelectorManager targetSelectorManager, AbilityFactory abilityFactory) : base(orbwalker, input, Key.Space) { this.targetSelectorManager = targetSelectorManager; this.abilityFactory = abilityFactory; }
public SimplePredictionPlugin(IServiceContext context) { this.targetManager = context.TargetSelector; this.hook = context.AbilityFactory.GetAbility <pudge_meat_hook>(); }
public Push([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector) : base(orbwalker, targetSelector, "Push", 'T', false, true, false, true, false, true) { }
public Farm([Import] IOrbwalker orbwalker, [Import] ITargetSelectorManager targetSelector) : base(orbwalker, targetSelector, "Farm", 'V', false, false, false, false, true, true) { }
public AutoAttackModeSelector(Unit owner, ITargetSelectorManager manager, AutoAttackModeConfig config) { this.Owner = owner; this.Manager = manager; this.Config = config; }
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; }