本文整理汇总了C#中TargetCancelType类的典型用法代码示例。如果您正苦于以下问题:C# TargetCancelType类的具体用法?C# TargetCancelType怎么用?C# TargetCancelType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TargetCancelType类属于命名空间,在下文中一共展示了TargetCancelType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCancel
public void OnCancel(TargetCancelType type)
{
if (type == TargetCancelType.UserCancel)
{
Network.Send(new PTarget_Cancel(this));
}
}
示例2: OnTargetCancel
protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
{
base.OnTargetCancel (from, cancelType);
if(OnCancelled != null)
OnCancelled();
}
示例3: OnTargetCancel
protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
{
if ( AuctionSystem.Running )
{
from.SendGump( new AuctionGump( from ) );
}
}
示例4: OnCancel
public void OnCancel(TargetCancelType type)
{
Engine.m_MultiPreview = false;
if (type == TargetCancelType.UserCancel)
{
Network.Send(new PMultiTarget_Cancel(this.m_TargetID));
}
}
示例5: OnTargetCancel
protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
{
base.OnTargetCancel(from, cancelType);
m_Duel.Broadcast("The duel was canceled.");
DuelController.DestroyDuel(m_Duel);
from.SendMessage("You have cancelled the duel request.");
}
示例6: OnTargetCancel
protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
{
if (this.m_Foundations.Count != 0)
{
from.SendMessage("Your changes have been committed. Updating...");
foreach (HouseFoundation house in this.m_Foundations)
house.Delta(ItemDelta.Update);
}
}
示例7: OnTargetCancel
protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
{
if (from != null && cancelType == TargetCancelType.Canceled && from is PlayerMobile)
{
PlayerMobile pm = (PlayerMobile)from;
DuelPoints dp = null;
if (DuelController.PointsTable.TryGetValue(from.Serial, out dp))
{
from.SendGump(new DuelPlayerInfoGump(dp));
}
else
from.SendMessage(53, "You have no dueling record.");
}
}
示例8: OnTargetCancel
protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
if ( cancelType == TargetCancelType.Timeout )
from.SendLocalizedMessage( 501619 ); // You have waited too long to make your inscribe selection, your inscription attempt has timed out.
}
示例9: OnTargetCancel
protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
from.EndAction( typeof( CraftSystem ) );
from.SendGump( new CraftGump( from, m_CraftSystem, m_Tool, null ) );
}
示例10: OnTargetCancel
protected virtual void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
}
示例11: OnTargetCancel
protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
from.SendLocalizedMessage( 1062336 ); // You decide not to place the contract at this time.
}
示例12: OnTargetCancel
protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
if ( cancelType == TargetCancelType.Canceled )
from.SendGump( new AddGrapeVineGump( from, null, m_IVariety, GumpPage.None ) );
}
示例13: OnTargetCancel
protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
from.SendLocalizedMessage( 1042021, "", 0x59 ); // Cancelled.
}
示例14: OnTargetCancel
protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
from.SendGump( new PBGMGump( m_PBGI ) );
}
示例15: OnTargetCancel
protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
{
if (TargetCancelType.Timeout == cancelType)
{
this.CancelTimeout();
this.m_Remaining = 0;
from.SendLocalizedMessage(1112822); // You fail to find the next ingredient in time. Your clockwork assembly crumbles.
this.m_Item.Delete();
}
}