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


C# Scissors.PublicOverheadMessage方法代碼示例

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


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

示例1: Scissor

        public override bool Scissor(Mobile from, Scissors scissors)
        {
            if (this.IsAccessibleTo(from))
            {
                if (!this.m_Cut && this.m_Timer == null)
                {
                    this.m_Timer = Timer.DelayCall<Mobile>(TimeSpan.FromSeconds(3), new TimerStateCallback<Mobile>(CuttingDone), from);
                    scissors.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1071899); // You begin cutting through the vein.
                    return true;
                }
                else
                    scissors.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1071900); // // This vein has already been cut.
            }

            return false;
        }
開發者ID:Crome696,項目名稱:ServUO,代碼行數:16,代碼來源:PlagueBeastVein.cs

示例2: Scissor

		public override bool Scissor( Mobile from, Scissors scissors )
		{
			if ( IsCuttable && IsAccessibleTo( from ) )
			{
				if ( !m_Opened && m_Timer == null )
				{
					m_Timer = Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 3 ), new TimerStateCallback<Mobile>( FinishOpening ), from );
					scissors.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071897 ); // You carefully cut into the organ.
					return true;
				}
				else
					scissors.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071898 ); // You have already cut this organ open.
			}

			return false;
		}
開發者ID:jsrn,項目名稱:MidnightWatchServer,代碼行數:16,代碼來源:PlagueBeastOrgans.cs

示例3: Scissor

        public virtual bool Scissor(Mobile from, Scissors scissors)
        {
            if (this.IsAccessibleTo(from))
                scissors.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1071918);  // You can't cut through the plague beast's amorphous skin with scissors!

            return false;
        }
開發者ID:FreeReign,項目名稱:forkuo,代碼行數:7,代碼來源:PlagueBeastLord.cs


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