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


C# ObjectPropertyList类代码示例

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


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

示例1: GetProperties

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

            if (this.m_Owner != null)
                list.Add(1076144, this.m_Owner.Name); // Property of ~1_OWNER~
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:PersonalAttendantDeed.cs

示例2: GetProperties

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

            string displayval = string.Format("{0:0.0}", Math.Truncate(Value * 10) / 10);
            list.Add(1076759, "{0}\t{1} Skill Points", this.GetName(), displayval);
        }
开发者ID:rokann,项目名称:JustUO,代码行数:7,代码来源:ScrollofTranscendence.cs

示例3: GetProperties

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

            if (IsArcane)
                list.Add(1061837, "{0}\t{1}", m_CurArcaneCharges, m_MaxArcaneCharges); // arcane charges: ~1_val~ / ~2_val~
        }
开发者ID:greeduomacro,项目名称:annox,代码行数:7,代码来源:SolaretesOfSacrifice.cs

示例4: 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

示例5: AddNameProperties

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

			if( m_IsShipwreckedItem )
				list.Add( 1041645 ); // recovered from a shipwreck
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:7,代码来源:Hats.cs

示例6: 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

示例7: AddNameProperty

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

示例8: GetProperties

        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);
			
            if (this.m_IsRewardItem)
                list.Add(1076217); // 1st Year Veteran Reward		
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:CommodityDeedBox.cs

示例9: AddNameProperties

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

            if (!CraftResources.IsStandard(Resource))
                list.Add(1060662, "{0}\t{1}", "Resource", CraftResources.GetName(Resource));
        }
开发者ID:Jascen,项目名称:UOSmart,代码行数:7,代码来源:RunicTinkerTools.cs

示例10: GetProperties

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );
			
			if ( Addon is StoneAnkh && ((StoneAnkh) Addon).IsRewardItem )
				list.Add( 1076221 ); // 5th Year Veteran Reward
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:StoneAnkh.cs

示例11: GetProperties

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

			if ( m_Bonus != 0 )
				list.Add( 1060451, "#1042354\t{0}", m_Bonus.ToString() ); // ~1_skillname~ +~2_val~
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:7,代码来源:AncientSmithyHammer.cs

示例12: 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

示例13: GetProperties

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

			if ( m_Exceptional && m_Crafter != null )
				list.Add( 1050043, m_Crafter.Name ); // crafted by ~1_NAME~
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:DragonBardingDeed.cs

示例14: 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

示例15: AddNameProperty

 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (Vendor != null && Vendor.Map != null && Vendor.Map != Map.Internal)
         list.Add(1154559, String.Format("{0}\t{1}", Vendor.Name, Vendor.ShopName)); // Map to Vendor ~1_Name~: ~2_Shop~
     else
         base.AddNameProperties(list);
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:VendorSearchMap.cs


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