当前位置: 首页>>代码示例>>C#>>正文


C# ExGatherTag.CastAura方法代码示例

本文整理汇总了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;
		}
开发者ID:mrfish4u,项目名称:ExBuddy,代码行数:28,代码来源:StealthApproachGatherSpot.cs

示例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;
		}
开发者ID:MGramolini,项目名称:ExBuddy,代码行数:11,代码来源:StealthGatherSpot.cs

示例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;
		}
开发者ID:MGramolini,项目名称:ExBuddy,代码行数:17,代码来源:StealthApproachGatherSpot.cs

示例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;
		}
开发者ID:mrfish4u,项目名称:ExBuddy,代码行数:41,代码来源:RandomApproachGatherSpot.cs

示例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;
		}
开发者ID:MGramolini,项目名称:ExBuddy,代码行数:22,代码来源:CollectableGatheringRotation.cs


注:本文中的ExGatherTag.CastAura方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。