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


C# Mobiles.AnimalTrainer类代码示例

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


AnimalTrainer类属于Server.Mobiles命名空间,在下文中一共展示了AnimalTrainer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ClaimListGump

			public ClaimListGump( AnimalTrainer trainer, Mobile from, List<BaseCreature> list ) : base( 50, 50 )
			{
				m_Trainer = trainer;
				m_From = from;
				m_List = list;

				from.CloseGump( typeof( ClaimListGump ) );

				AddPage( 0 );

				AddBackground( 0, 0, 325, 50 + (list.Count * 20), 9250 );
				AddAlphaRegion( 5, 5, 315, 40 + (list.Count * 20) );

				AddHtml( 15, 15, 275, 20, "<BASEFONT COLOR=#FFFFFF>Select a pet to retrieve from the stables:</BASEFONT>", false, false );

				for ( int i = 0; i < list.Count; ++i )
				{
					BaseCreature pet = list[i];

					if ( pet == null || pet.Deleted )
						continue;

					AddButton( 15, 39 + (i * 20), 10006, 10006, i + 1, GumpButtonType.Reply, 0 );
					AddHtml( 32, 35 + (i * 20), 275, 18, String.Format( "<BASEFONT COLOR=#C0C0EE>{0}</BASEFONT>", pet.Name ), false, false );
				}
			}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:26,代码来源:AnimalTrainer.cs

示例2: StableEntry

			public StableEntry( AnimalTrainer trainer, Mobile from ) : base( 6126, 12 )
			{
				m_Trainer = trainer;
				m_From = from;
			}
开发者ID:zerodowned,项目名称:angelisland,代码行数:5,代码来源:AnimalTrainer.cs

示例3: StableTarget

			public StableTarget( AnimalTrainer trainer ) : base( 12, false, TargetFlags.None )
			{
				m_Trainer = trainer;
			}
开发者ID:zerodowned,项目名称:angelisland,代码行数:4,代码来源:AnimalTrainer.cs

示例4: ClaimAllEntry

			public ClaimAllEntry( AnimalTrainer trainer, Mobile from ) : base( 6127, 12 )
			{
				m_Trainer = trainer;
				m_From = from;
			}
开发者ID:zerodowned,项目名称:angelisland,代码行数:5,代码来源:AnimalTrainer.cs

示例5: GumpEntry

 public GumpEntry( AnimalTrainer trainer, Mobile from )
     : base(6181, 12)
 {
     m_Trainer = trainer;
     m_From = from;
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:6,代码来源:AnimalTrainer.cs

示例6: ClaimListMenu

            public ClaimListMenu( AnimalTrainer trainer, Mobile from, List<BaseCreature> list )
                : base("Select a pet to retrieve from the stables:", null)
            {
                m_Trainer = trainer;
                m_From = from;
                m_List = list;

                List<String> answersList = new List<String>();

                for ( int i = 0; i < list.Count; ++i )
                {
                    BaseCreature pet = list[i];

                    if ( pet == null || pet.Deleted )
                        continue;

                    answersList.Add( pet.Name );
                }

                Answers = answersList.ToArray();
            }
开发者ID:Ravenwolfe,项目名称:Origins,代码行数:21,代码来源:AnimalTrainer.cs


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