• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ObjectPropertyList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: GetProperties

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

			if ( m_Title != null )
				list.Add( 1062841, m_Title ); // ~1_NAME~ the HolidaySnowman
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:HolidaySnowman.cs


示例17: GetProperties

		public override void GetProperties( ObjectPropertyList list )
		{
			if( IsEmpty )
			{
				base.GetProperties( list );
			}
		}
开发者ID:bugraerdogan,项目名称:silverlight-uo-client,代码行数:7,代码来源:BaseWaterContainer.cs


示例18: GetProperties

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

			int commonSongs = 0;
			int uncommonSongs = 0;
			int rareSongs = 0;

			for ( int i = 0; i < m_Tracks.Count; i++ )
			{
				DawnsMusicInfo info = GetInfo( m_Tracks[ i ] );

				switch ( info.Rarity )
				{
					case DawnsMusicRarity.Common: commonSongs++; break;
					case DawnsMusicRarity.Uncommon: uncommonSongs++; break;
					case DawnsMusicRarity.Rare: rareSongs++; break;
				}
			}

			if ( commonSongs > 0 )
				list.Add( 1075234, commonSongs.ToString() ); // ~1_NUMBER~ Common Tracks
			if ( uncommonSongs > 0 )
				list.Add( 1075235, uncommonSongs.ToString() ); // ~1_NUMBER~ Uncommon Tracks
			if ( rareSongs > 0 )
				list.Add( 1075236, rareSongs.ToString() ); // ~1_NUMBER~ Rare Tracks
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:27,代码来源:DawnsMusicBox.cs


示例19: GetProperties

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

            if (this.m_UsesRemaining >= 0)
                list.Add(1060584, this.m_UsesRemaining.ToString()); // uses remaining: ~1_val~
        }
开发者ID:jasegiffin,项目名称:JustUO,代码行数:7,代码来源:HammerOfRecovery.cs


示例20: GetProperties

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

			if ( EraML && m_IsRewardItem )
				list.Add( 1113803 ); // 13th Year Veteran Reward
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:RewardMetalDyeTub.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ObjectReader类代码示例发布时间:2022-05-24
下一篇:
C# ObjectPool类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap