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


C# ObjectPropertyList.Add方法代码示例

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


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

示例1: AddNameProperty

 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (Amount > 1)
         list.Add(String.Format("{0} Jelly Beans", Amount));
     else
         list.Add("A Jelly Bean");
 }		
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:7,代码来源:JellyBeans.cs

示例2: 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,代码来源:TollMoongate.cs

示例3: 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,项目名称:last-wish,代码行数:7,代码来源:LightOfTheWinterSolstice.cs

示例4: AddNameProperty

 public override void AddNameProperty( ObjectPropertyList list )
 {
     if ( Amount > 1 )
         list.Add( 1050039, "{0}\t{1}", Amount, "Bunches of "+BrewingResources.GetName( m_Variety )+" Cones" ); // ~1_NUMBER~ ~2_ITEMNAME~
     else
         list.Add( "Bunch of "+BrewingResources.GetName( m_Variety )+" Cones" );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:Hops.cs

示例5: 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:greeduomacro,项目名称:hubroot,代码行数:28,代码来源:HouseSign.cs

示例6: GetProperties

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

			list.Add( 1074502 ); // It looks explosive.
			list.Add( 1075085 ); // Requirement: Mondain's Legacy
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:MelisandesFermentedWine.cs

示例7: AddNameProperty

		public override void AddNameProperty( ObjectPropertyList list )
		{
			if ( Amount > 1 )
				list.Add( 1050039, "{0}\t#{1}", Amount, 1024216 ); // ~1_NUMBER~ ~2_ITEMNAME~
			else
				list.Add( 1024216 ); // pile of hides
		}
开发者ID:romeov007,项目名称:imagine-uo,代码行数:7,代码来源:Hides.cs

示例8: GetProperties

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

            list.Add(1074841); // Double click to transport out of the Prism of Light dungeon
            list.Add(1075269); // Destroyed when dropped
        }
开发者ID:rokann,项目名称:JustUO,代码行数:7,代码来源:PrismOfLightAdmissionTicket.cs

示例9: AddNameProperty

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

示例10: 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 ); // board
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:7,代码来源:Board.cs

示例11: GetPropertiesFirst

        public static void GetPropertiesFirst( ObjectPropertyList list, Item item )
        {
            list.Add( 1072376, "8" ); // Part Of An Armor Set (8 Pieces)

            if ( item.Hue == 0 )
                list.Add( 1072377 ); // Full Armor Set Present
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:7,代码来源:VirtueSet.cs

示例12: AddNameProperty

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

示例13: AddNameProperty

 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (Amount > 1)
         list.Add("{0} Pâtes", Amount);
     else
         list.Add("{0} Pâte", Amount);
 }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:7,代码来源:Cooking.cs

示例14: AddNameProperty

 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (m_UsesRemaining <= 1)
         list.Add(LabelNumber);
     else
         list.Add(1050039, "{0}\t#{1}", m_UsesRemaining, LabelNumber); // ~1_NUMBER~ ~2_ITEMNAME~
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:ScouringToxin.cs

示例15: GetProperties

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

			list.Add( 1060584, m_UsesRemaining.ToString() ); // uses remaining: ~1_val~

			if ( m_Poison != null && m_PoisonCharges > 0 )
				list.Add( 1062412 + m_Poison.Level, m_PoisonCharges.ToString() );
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:9,代码来源:Shuriken.cs


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