本文整理匯總了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;
}
示例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;
}
示例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;
}