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


C# TargetCancelType类代码示例

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

示例2: OnTargetCancel

			protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
			{
				base.OnTargetCancel (from, cancelType);

				if(OnCancelled != null)
					OnCancelled();
			}
开发者ID:greeduomacro,项目名称:annox,代码行数:7,代码来源:BoundingBoxEx.cs

示例3: OnTargetCancel

		protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
		{
			if ( AuctionSystem.Running )
			{
				from.SendGump( new AuctionGump( from ) );
			}
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:7,代码来源:AuctionTarget.cs

示例4: OnCancel

 public void OnCancel(TargetCancelType type)
 {
     Engine.m_MultiPreview = false;
     if (type == TargetCancelType.UserCancel)
     {
         Network.Send(new PMultiTarget_Cancel(this.m_TargetID));
     }
 }
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:8,代码来源:MultiTargetHandler.cs

示例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.");
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:9,代码来源:DuelTarget.cs

示例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);
                }
            }
开发者ID:Crome696,项目名称:ServUO,代码行数:10,代码来源:DesignInsert.cs

示例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.");
				}
			}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:15,代码来源:DuelPlayerInfoGump.cs

示例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.
			}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:5,代码来源:Inscribe.cs

示例9: OnTargetCancel

 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     from.EndAction( typeof( CraftSystem ) );
     from.SendGump( new CraftGump( from, m_CraftSystem, m_Tool, null ) );
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:5,代码来源:SoftenedReeds.cs

示例10: OnTargetCancel

 protected virtual void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
 }
开发者ID:Leorgrium,项目名称:runuo,代码行数:3,代码来源:Target.cs

示例11: OnTargetCancel

 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     from.SendLocalizedMessage( 1062336 ); // You decide not to place the contract at this time.
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:VendorRentalContract.cs

示例12: OnTargetCancel

 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     if ( cancelType == TargetCancelType.Canceled )
         from.SendGump( new AddGrapeVineGump( from, null, m_IVariety, GumpPage.None ) );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:5,代码来源:AddGrapevineGump.cs

示例13: OnTargetCancel

 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     from.SendLocalizedMessage( 1042021, "", 0x59 ); // Cancelled.
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:SolenMatriarch.cs

示例14: OnTargetCancel

			protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
			{
				from.SendGump( new PBGMGump( m_PBGI ) );
			}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:4,代码来源:PBGMGump.cs

示例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();
     }
 }
开发者ID:m309,项目名称:ForkUO,代码行数:10,代码来源:ClockworkMechanism.cs


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