當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。