本文整理汇总了C#中SpellbookStopCastEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# SpellbookStopCastEventArgs类的具体用法?C# SpellbookStopCastEventArgs怎么用?C# SpellbookStopCastEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SpellbookStopCastEventArgs类属于命名空间,在下文中一共展示了SpellbookStopCastEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnStopCast
private static void OnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (sender.Owner.IsMe)
{
IsRunning = false;
}
}
示例2: OnStopCast
private static void OnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (sender?.Owner != null && sender.Owner.IsMe)
{
IsBusy = false;
}
}
示例3: Spellbook_OnStopCast
private static void Spellbook_OnStopCast(Obj_AI_Base sender, SpellbookStopCastEventArgs args)
{
if (sender.IsMe && (Game.Time * 1000) - lastaa < ObjectManager.Player.AttackCastDelay * 1000 + 50f && !args.ForceStop)
{
lastaa = 0f;
}
}
示例4: SpellbookOnStopCast
private static void SpellbookOnStopCast(Spellbook spellbook, SpellbookStopCastEventArgs args)
{
if (spellbook.Owner.IsValid && args.DestroyMissile && args.StopAnimation)
{
if (ActiveAttacks.ContainsKey(spellbook.Owner.NetworkId))
{
ActiveAttacks.Remove(spellbook.Owner.NetworkId);
}
}
}
示例5: StopCast
public static void StopCast(Obj_AI_Base sender, SpellbookStopCastEventArgs args)
{
if (sender.IsMe)
{
if (sender.IsValid && args.DestroyMissile && args.StopAnimation)
{
Variables.IsDashing = false;
}
}
}
示例6: SpellbookOnStopCast
private static void SpellbookOnStopCast(Obj_AI_Base sender, SpellbookStopCastEventArgs args)
{
if (sender.Spellbook.Owner.IsValid && args.StopAnimation)
{
if (ActiveAttacks.ContainsKey(sender.Spellbook.Owner.NetworkId))
{
ActiveAttacks.Remove(sender.Spellbook.Owner.NetworkId);
}
}
}
示例7: Spellbook_OnStopCast
private static void Spellbook_OnStopCast(Obj_AI_Base sender, SpellbookStopCastEventArgs args)
{
if (sender.IsMe)
{
if (sender.IsValid && args.DestroyMissile && args.StopAnimation)
{
IsDashing = false;
}
}
}
示例8: SpellbookOnStopCast
private void SpellbookOnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (sender.Owner.IsMe)
{
if(args.StopAnimation && args.DestroyMissile)
LastAATick = 0;
}
}
示例9: OnSpellbookStopCast
private void OnSpellbookStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
try
{
if (sender.Owner.IsMe)
{
_isCasting = false;
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
示例10: onMeleeStopAutoAttack
private static void onMeleeStopAutoAttack(Spellbook sender, SpellbookStopCastEventArgs args)
{
//if (!sender.Owner.IsMelee())
// return;
if (activeDamageMakers.ContainsKey(sender.Owner.NetworkId))
activeDamageMakers.Remove(sender.Owner.NetworkId);
//Ranged aswell
if (args.DestroyMissile && activeDamageMakers.ContainsKey(args.MissileNetworkId))
activeDamageMakers.Remove(args.MissileNetworkId);
}
示例11: onStopAutoAttack
private static void onStopAutoAttack(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (sender.Owner.IsMe && args.DestroyMissile)
{
lastAutoAttack = 0;
lastAutoAttackMove = 0;
}
}
示例12: SpellbookOnOnStopCast
protected virtual void SpellbookOnOnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
//for Champion used
}
示例13: Spellbook_OnStopCast
private static void Spellbook_OnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (sender.Owner.IsMe)
{
// Reset timer
IsBusy = false;
}
}
示例14: OnStopCast
private void OnStopCast(Obj_AI_Base sender, SpellbookStopCastEventArgs args)
{
if (sender == null)
{
return;
}
if (args.ForceStop || args.StopAnimation)
{
foreach (
var c in
DetectedSkillshots.Where(
v => v.SpawnObject == null && v.Caster != null && v.Caster.IdEquals(sender)))
{
c.IsValid = false;
}
}
}
示例15: SpellbookOnOnStopCast
private void SpellbookOnOnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
{
if (!sender.Owner.IsMe)
{
return;
}
if (!this.IsChannelingR || !sender.IsChanneling)
{
this.Orbwalker.SetMovement(true);
this.Orbwalker.SetAttack(true);
}
}