本文整理汇总了C#中ExGatherTag.CastAura方法的典型用法代码示例。如果您正苦于以下问题:C# ExGatherTag.CastAura方法的具体用法?C# ExGatherTag.CastAura怎么用?C# ExGatherTag.CastAura使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ExGatherTag
的用法示例。
在下文中一共展示了ExGatherTag.CastAura方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MoveToSpot
public override async Task<bool> MoveToSpot(ExGatherTag tag)
{
tag.StatusText = "Moving to " + this;
if (StealthLocation == Vector3.Zero)
{
return false;
}
var result =
await
StealthLocation.MoveTo(UseMesh,
radius: tag.Radius,
name: "Stealth Location",
stopCallback: tag.MovementStopCallback,
dismountAtDestination: true);
if (result)
{
await Coroutine.Yield();
await tag.CastAura(Ability.Stealth, AbilityAura.Stealth);
result =
await NodeLocation.MoveToNoMount(UseMesh, tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback);
}
return result;
}
示例2: MoveFromSpot
public override async Task<bool> MoveFromSpot(ExGatherTag tag)
{
tag.StatusText = "Moving from " + this;
if (UnstealthAfter && Core.Player.HasAura((int) AbilityAura.Stealth))
{
return await tag.CastAura(Ability.Stealth);
}
return true;
}
示例3: MoveFromSpot
public override async Task<bool> MoveFromSpot(ExGatherTag tag)
{
tag.StatusText = "Moving from " + this;
var result = true;
if (ReturnToStealthLocation)
{
result &= await StealthLocation.MoveToNoMount(UseMesh, tag.Radius, tag.Node.EnglishName, tag.MovementStopCallback);
}
if (UnstealthAfter && Core.Player.HasAura((int) AbilityAura.Stealth))
{
result &= await tag.CastAura(Ability.Stealth);
}
return result;
}
示例4: MoveToSpot
public override async Task<bool> MoveToSpot(ExGatherTag tag)
{
tag.StatusText = "Moving to " + this;
if (approachLocation == Vector3.Zero)
{
if (HotSpots == null || HotSpots.Count == 0)
{
return false;
}
approachLocation = HotSpots.Shuffle().First();
}
var result =
await
approachLocation.MoveToPointWithin(dismountAtDestination: Stealth);
if (result)
{
await Coroutine.Yield();
if (Stealth)
{
await tag.CastAura(Ability.Stealth, AbilityAura.Stealth);
result =
await NodeLocation.MoveToNoMount(UseMesh, tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback);
}
else
{
result =
await
NodeLocation.MoveTo(UseMesh,
radius: tag.Distance,
name: tag.Node.EnglishName,
stopCallback: tag.MovementStopCallback);
}
}
return result;
}
示例5: Prepare
public override async Task<bool> Prepare(ExGatherTag tag)
{
await tag.CastAura(Ability.CollectorsGlove, AbilityAura.CollectorsGlove);
var ticks = 0;
do
{
await Wait();
if (!tag.GatherItem.TryGatherItem())
{
return false;
}
} while (ticks++ < 10 && !await Coroutine.Wait(3000, () => GatheringMasterpiece.IsOpen) && Behaviors.ShouldContinue);
if (ticks > 10)
{
tag.Logger.Error("Timed out during collectable preparation");
}
return true;
}