當前位置: 首頁>>代碼示例>>C#>>正文


C# Character.RemoveUpdateAction方法代碼示例

本文整理匯總了C#中WCell.RealmServer.Entities.Character.RemoveUpdateAction方法的典型用法代碼示例。如果您正苦於以下問題:C# Character.RemoveUpdateAction方法的具體用法?C# Character.RemoveUpdateAction怎麽用?C# Character.RemoveUpdateAction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WCell.RealmServer.Entities.Character的用法示例。


在下文中一共展示了Character.RemoveUpdateAction方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnLeave

		void OnLeave(Character chr)
		{
			Team.Remove(chr.EntityId.Low);
			chr.RemoveUpdateAction(UpdateCallback);

			// hide all figurines
			chr.ResetOwnWorld();
		}
開發者ID:KroneckerX,項目名稱:WCell,代碼行數:8,代碼來源:MapEditor.cs

示例2: OnFlagAuraRemoved

		/// <summary>
		/// Called when flag is captured, or dropped
		/// </summary>
		void OnFlagAuraRemoved(Character chr)
		{
			chr.RemoveUpdateAction(_debuffUpdate);
		}
開發者ID:pallmall,項目名稱:WCell,代碼行數:7,代碼來源:WSGFaction.cs

示例3: OnEnter

		protected override void OnEnter(Character chr)
		{
			base.OnEnter(chr);

			var invitation = chr.Battlegrounds.Invitation;

			if (invitation == null)
			{
				// don't join a team if not invited
				return;
			}

			var team = invitation.Team;
			if (team.Battleground != this)
			{
				// decided for another BG in the meantime
				team.Battleground.TeleportInside(chr);
				return;
			}

			// stop cancel timer
			chr.RemoveUpdateAction(invitation.CancelTimer);

			// Cast the spell "10% Healing Reduction in BG/Arenas"
			chr.SpellCast.TriggerSelf(_healingReductionSpell);

			// join team
			JoinTeam(chr, team);

			BattlegroundHandler.SendStatusActive(chr, this, invitation.QueueIndex);
		}
開發者ID:KroneckerX,項目名稱:WCell,代碼行數:31,代碼來源:Battleground.cs

示例4: OnFlagAuraRemoved

		/// <summary>
		/// Called when flag is captured, or dropped
		/// </summary>
		void OnFlagAuraRemoved(Character chr)
		{
			chr.RemoveUpdateAction(m_DebuffObjectUpdate);
		}
開發者ID:remixod,項目名稱:netServer,代碼行數:7,代碼來源:WSGFaction.cs


注:本文中的WCell.RealmServer.Entities.Character.RemoveUpdateAction方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。