本文整理汇总了C#中Spellbook类的典型用法代码示例。如果您正苦于以下问题:C# Spellbook类的具体用法?C# Spellbook怎么用?C# Spellbook使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Spellbook类属于命名空间,在下文中一共展示了Spellbook类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Spellbook_OnCastSpell
private void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (args.Slot == SpellSlot.Q || args.Slot == SpellSlot.W || args.Slot == SpellSlot.E)
{
passRdy = true;
}
}
示例2: Spellbook_OnCastSpell
public static void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (sender.Owner.IsMe)
{
lock (m_lock)
{
if (SPredictioner.Config.Item("ENABLED").GetValue<bool>() && (SPredictioner.Config.Item("COMBOKEY").GetValue<KeyBind>().Active || SPredictioner.Config.Item("HARASSKEY").GetValue<KeyBind>().Active))
{
if (!ShineCommon.Utility.IsValidSlot(args.Slot))
return;
if (SPredictioner.Spells[(int)args.Slot] == null)
return;
if (handleEvent[(int)args.Slot])
{
args.Process = false;
handleEvent[(int)args.Slot] = false;
var enemy = args.EndPosition.GetEnemiesInRange(200f).OrderByDescending(p => ShineCommon.Utility.GetPriority(p.ChampionName)).FirstOrDefault();
if (enemy == null)
enemy = TargetSelector.GetTarget(SPredictioner.Spells[(int)args.Slot].Range, TargetSelector.DamageType.Physical);
if (enemy != null)
SPredictioner.Spells[(int)args.Slot].SPredictionCast(enemy, ShineCommon.Utility.HitchanceArray[SPredictioner.Config.Item("SPREDHITC").GetValue<StringList>().SelectedIndex]);
}
}
}
}
}
示例3: OnStopCast
private static void OnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (sender?.Owner != null && sender.Owner.IsMe)
{
IsBusy = false;
}
}
示例4: OnCastSpell
static void OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (sender == null || !sender.Owner.IsMe) {
return;
}
var antiswitch = Config.Item("antiswitchenabled").GetValue<bool>();
var useforthis = Config.Item("Spells." + args.Slot).GetValue<bool>();
var target = args.Target as Obj_AI_Hero;
var mindelay = Config.Item("mindelay").GetValue<Slider>().Value;
if (antiswitch && target != null)
{
if (target != Player.LastCastedSpellTarget() && Utils.TickCount - Player.LastCastedSpellT() <= mindelay)
{
args.Process = false;
return;
}
}
var humanizerenabled = Config.Item("humanizerenabled").GetValue<bool>();
var delayforthis = Config.Item(args.Slot + "delay").GetValue<Slider>().Value;
if (humanizerenabled && useforthis)
{
if (Utils.TickCount - Player.LastCastedSpellT() <= delayforthis)
{
args.Process = false;
}
}
}
示例5: PassiveControl
private void PassiveControl(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (args.Slot == SpellSlot.Q || args.Slot == SpellSlot.W || args.Slot == SpellSlot.E)
{
ProcessSpell();
}
}
示例6: SummonerItems
public SummonerItems(Obj_AI_Hero myHero)
{
_player = myHero;
_sumBook = _player.Spellbook;
_ignite = _player.GetSpellSlot("summonerdot");
_smite = _player.GetSpellSlot("SummonerSmite");
}
示例7: Spellbook_OnCastSpell
private void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (args.Slot == SpellSlot.E)
{
NextCicleOn = Game.Time + 9.8f;
}
}
示例8: OnSpell
public static void OnSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (args.Slot == SpellSlot.Q)
{
PortAIO.OrbwalkerManager.ResetAutoAttackTimer();
}
}
示例9: SummonerItems
public SummonerItems(Obj_AI_Hero myHero)
{
player = myHero;
sumBook = player.Spellbook;
ignite = player.GetSpellSlot("summonerdot");
smite = player.GetSpellSlot("SummonerSmite");
}
示例10: Spellbook_OnUpdateChargedSpell
private void Spellbook_OnUpdateChargedSpell(Spellbook sender, SpellbookUpdateChargedSpellEventArgs args)
{
if (sender.Owner.IsMe)
{
args.Process = !Config.Item("autoR", true).GetValue<bool>();
}
}
示例11: OnSpell
public static void OnSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (args.Slot == SpellSlot.Q)
{
Orbwalker.ResetAutoAttack();
}
}
示例12: OnStopCast
private static void OnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (sender.Owner.IsMe)
{
IsRunning = false;
}
}
示例13: OnSpellbookCastSpell
private static void OnSpellbookCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (!Enabled)
{
return;
}
try
{
if (sender.Owner.IsMe)
{
var target = args.Target as Obj_AI_Hero;
if (target != null)
{
switch (args.Slot)
{
case SpellSlot.Q:
case SpellSlot.W:
case SpellSlot.E:
case SpellSlot.R:
Damages.Clean();
if (Damages.IsDying(target))
{
args.Process = false;
}
break;
}
}
}
}
catch (Exception ex)
{
Global.Logger.AddItem(new LogItem(ex));
}
}
示例14: OnCastSpell
protected override void OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (sender.Owner.IsMe && args.Slot == SpellSlot.E && Player.IsDashing())
{
args.Process = false;
}
}
示例15: OnCastSpell
public static void OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
{
if (sender.Owner.IsMe && args.Slot == SpellSlot.Q && Program.Player.IsDashing())
{
args.Process = false;
}
}