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


C# ObjectPropertyList.Add方法代码示例

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


在下文中一共展示了ObjectPropertyList.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetProperties

		public override void GetProperties(ObjectPropertyList list)
		{
			base.GetProperties(list);

			int color = Color.FromKnownColor(UsageColor).ToArgb();

			switch (Command)
			{
				case AutoPvPStoneCommand.ViewBattles:
					{
						list.Add("<basefont color=#{0:X6}>Opens the PvP battles menu<basefont color=#ffffff>", color);
					}
					break;
				case AutoPvPStoneCommand.ViewProfiles:
					{
						list.Add("<basefont color=#{0:X6}>Opens the PvP profiles menu<basefont color=#ffffff>", color);
					}
					break;
				case AutoPvPStoneCommand.GlobalConfig:
					{
						list.Add("<basefont color=#{0:X6}>Use: Opens the PvP control panel<basefont color=#ffffff>", color);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:25,代码来源:AutoPvPStone.cs

示例2: AddNameProperty

 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (m_Plot == null)
         list.Add(1150530, "unknown"); // Stall ~1_NAME~
     else
         list.Add(1150530, m_Plot.PlotDef != null ? m_Plot.PlotDef.ID : "unknown"); // Stall ~1_NAME~
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:PlotSign.cs

示例3: AddNameProperties

        public override void AddNameProperties( ObjectPropertyList list )
        {
            base.AddNameProperties( list );

            list.Add( 1041350 ); // faction item
            list.Add( 1060584, m_UsesRemaining.ToString() ); // uses remaining: ~1_val~
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:7,代码来源:PowderOfPerseverance.cs

示例4: AddNameProperties

 public override void AddNameProperties( ObjectPropertyList list )
 {
     if ( IsUsable() )
         list.Add( 1112130 ); // a lever
     else
         list.Add( 1112129 ); // a lever (unusable)
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:7,代码来源:ChamberLever.cs

示例5: AddNameProperty

		public override void AddNameProperty(ObjectPropertyList list)
		{
			if(m_Label != null && m_Label.Length > 0)
				list.Add(1049519, m_Label); // a bottle of ~1_DRINK_NAME~
			else
				list.Add(1049519, String.Format("#{0}", DistillationSystem.GetLabel(m_Liquor, m_IsStrong))); // a bottle of ~1_DRINK_NAME~
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:BottleOfLiquor.cs

示例6: AddNameProperty

		public override void AddNameProperty( ObjectPropertyList list )
		{
			if ( Amount != 1 )
				list.Add( String.Format( "{0} bloody bandages", this.Amount ) );
			else
				list.Add( "a bloody bandage" );
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:BloodyBandage.cs

示例7: GetProperties

        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            if (m_KillEntry == null || m_KillEntry.KillIndex < 0 || m_KillEntry.KillIndex >= HuntingTrophyInfo.Infos.Count)
                return;

            HuntingTrophyInfo info = HuntingTrophyInfo.Infos[m_KillEntry.KillIndex];

            if (m_Owner != null)
                list.Add(1155708, m_Owner.Name); // Hunter: ~1_NAME~

            if (m_KillEntry.DateKilled != DateTime.MinValue)
                list.Add(1155709, m_KillEntry.DateKilled.ToShortDateString()); // Date of Kill: ~1_DATE~

            if (m_KillEntry.Location != null)
                list.Add(1061114, m_KillEntry.Location); // Location: ~1_val~

            list.Add(1155718, info.Species.ToString());

            if (info.MeasuredBy == MeasuredBy.Length)
                list.Add(1155711, m_KillEntry.Measurement.ToString()); // Length: ~1_VAL~
            else if (info.MeasuredBy == MeasuredBy.Wingspan)
                list.Add(1155710, m_KillEntry.Measurement.ToString());	// Wingspan: ~1_VAL~
            else
                list.Add(1072789, m_KillEntry.Measurement.ToString()); // Weight: ~1_WEIGHT~
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:27,代码来源:HuntingPermit.cs

示例8: GetProperties

        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1060584, m_UsesRemaining.ToString()); // uses remaining: ~1_val~
            list.Add("skill required: healing");
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:7,代码来源:BloodDrainToolkit.cs

示例9: GetProperties

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1061639, Utility.FixHtml( GetName() ) ); // Name: ~1_NAME~
			list.Add( 1061640, (m_Owner == null || m_Owner.Owner == null) ? "nobody" : m_Owner.Owner.Name ); // Owner: ~1_OWNER~

			if ( m_Owner != null )
			{
				list.Add( m_Owner.Public ? 1061641 : 1061642 ); // This House is Open to the Public : This is a Private Home

				m_GettingProperties = true;
				DecayLevel level = m_Owner.DecayLevel;
				m_GettingProperties = false;

				if ( level == DecayLevel.DemolitionPending )
				{
					list.Add( 1062497 ); // Demolition Pending
				}
				else if ( level != DecayLevel.Ageless )
				{
					if ( level == DecayLevel.Collapsed )
						level = DecayLevel.IDOC;

					list.Add( 1062028, String.Format( "#{0}", 1043009 + (int)level ) ); // Condition: This structure is ...
				}
			}
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:28,代码来源:HouseSign.cs

示例10: GetProperties

 public override void GetProperties( ObjectPropertyList list )
 {
     if ( c_Owner != null )
         list.Add( "a renter's license belonging to " + c_Owner.Name );
     else
         list.Add( "a renter's license" );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:RentalLicense.cs

示例11: GetProperties

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1070881, m_Dipper ); // Hand Dipped by ~1_name~
			list.Add( 1070880  ); // Winter 2004
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:7,代码来源:LightOfTheWinterSolstice.cs

示例12: AddNameProperty

		public override void AddNameProperty( ObjectPropertyList list )
		{
			if ( Amount > 1 )
				list.Add( 1050039, "{0}\t#{1}", Amount, 1027128 ); // ~1_NUMBER~ ~2_ITEMNAME~
			else
				list.Add( 1027127 ); // boards
		}
开发者ID:greeduomacro,项目名称:uodarktimes-1,代码行数:7,代码来源:Board.cs

示例13: GetProperties

		public override void GetProperties( ObjectPropertyList list )
		{
			list.Add( 1114057, this.Name ); // ~1_VAL~
			list.Add( 1038021 ); // blessed
			list.Add( 1070722, "(Enchants Blue Mage Clothing)" ); // ~1_NOTHING~
			list.Add( 1042971, "<ALIGN='CENTER'><BASEFONT COLOR='#007FFF'>*{0}*</BASEFONT></ALIGN>", Enum.GetName( typeof( BlueEnhance ), m_Enhance ) ); // ~1_NOTHING~
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:BlueEnhanceDeed.cs

示例14: GetProperties

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add(1060658,"{0}\t{1}","Toll Type",m_TollItem);
			list.Add(1060659,"{0}\t{1}","Toll Amount",m_TollAmount);
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:7,代码来源:PartyTollGate.cs

示例15: GetProperties

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1060655 ); // large bulk order
			
			//string subString = "amount to tame";

			list.Add( "amount to tame: {0}", m_AmountMax.ToString() );

			for ( int i = 0; i < m_Entries.Length; ++i )
			{
				string s = m_Entries[i].Details.AnimalName;

				int capsbreak = s.IndexOfAny("ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(),1);

				if( capsbreak > -1 )
				{
					string secondhalf = s.Substring( capsbreak );
 					string firsthalf = s.Substring(0, capsbreak );

					list.Add( 1060658 + i, "{0} {1}\t{2}", firsthalf, secondhalf, m_Entries[i].Amount ); // ~1_val~: ~2_val~
				}
				else
				{
					list.Add( 1060658 + i, "{0}\t{1}", m_Entries[i].Details.AnimalName, m_Entries[i].Amount ); // ~1_val~: ~2_val~
				}
			}
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:29,代码来源:LargeMobileBOD.cs


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