• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TargetCancelType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中TargetCancelType的典型用法代码示例。如果您正苦于以下问题:C# TargetCancelType类的具体用法?C# TargetCancelType怎么用?C# TargetCancelType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TargetCancelType类属于命名空间,在下文中一共展示了TargetCancelType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: OnTargetCancel

 protected override void OnTargetCancel( Mobile from, TargetCancelType type )
 {
     ((PlayerMobile)from).SentRequest = false;
 }
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:4,代码来源:DuelingTarget.cs


示例17: OnCancel

 public void OnCancel(TargetCancelType type)
 {
 }
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:3,代码来源:NullTargetHandler.cs


示例18: OnTargetCancel

 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     if ( cancelType == TargetCancelType.Canceled )
         from.CloseGump( typeof( InteriorDecorator.InternalGump ) );
 }
开发者ID:Godkong,项目名称:Origins,代码行数:5,代码来源:InteriorDecorator.cs


示例19: OnTargetCancel

 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     from.SendLocalizedMessage(1062380); // You decide against offering the contract to anyone.
 }
开发者ID:zerodowned,项目名称:justuo-with-ec-support,代码行数:4,代码来源:VendorRentalGumps.cs


示例20: OnTargetCancel

 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     from.SendGump(new SearchImageGump(m_Search));
     base.OnTargetCancel(from, cancelType);
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:5,代码来源:SearchImage.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TargetFrameworkMoniker类代码示例发布时间:2022-05-24
下一篇:
C# TargetAddress类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap