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


C# Server.ObjectPropertyList类代码示例

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


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

示例1: AddNameProperties

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

            if (!String.IsNullOrEmpty(m_Subtext))
                list.Add(m_Subtext);
        }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:7,代码来源:SubtextSign.cs

示例2: AddNameProperty

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

			if ( IsSigned )
				list.Add( 1152273, String.Format( "{0}\t{1}", m_From, m_To ) ); // ~1_val~ is madly in love with ~2_val~
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:7,代码来源:CupidsArrow.cs

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

示例4: GetProperties

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

			// as if the name wasn't enough..
			list.Add( 1017410 ); // Special Fishing Net
		}
开发者ID:Godkong,项目名称:Origins,代码行数:7,代码来源:SpecialFishingNet.cs

示例5: 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:Godkong,项目名称:RunUO,代码行数:7,代码来源:DragonBardingDeed.cs

示例6: GetProperties

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

			if (m_QuestType != null)
				list.Add(String.Format("Required quest: {0}", m_QuestType.Name));
		}
开发者ID:jackuoll,项目名称:Pre-AOS-RunUO,代码行数:7,代码来源:Teleporters.cs

示例7: AddNameProperty

		public override void AddNameProperty( ObjectPropertyList list )
		{
			if ( m_Boat != null && m_Boat.ShipName != null )
				list.Add( 1042884, m_Boat.ShipName ); // the tiller man of the ~1_SHIP_NAME~
			else
				base.AddNameProperty( list );
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:7,代码来源:TillerMan.cs

示例8: AddNameProperties

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

            if ( m_IsShipwreckedItem )
                list.Add( 1041645 ); // recovered from a shipwreck
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:7,代码来源:Candelabra.cs

示例9: AddNameProperties

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

			if ( m_Charges >= 0 )
				list.Add( 1060658, "Charges\t{0}", m_Charges.ToString() );
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:7,代码来源:PetLeash.cs

示例10: GetProperties

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

            list.Add(1060741, m_Charges.ToString()); // charges: ~1_val~
            list.Add(1150598); // auto recharge
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:ChestOfSending.cs

示例11: GetProperties

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

            if (Lifespan > 0)
            {
                if (UseSeconds)
                    list.Add(1072517, m_Lifespan.ToString()); // Lifespan: ~1_val~ seconds
                else
                {
                    TimeSpan t = TimeSpan.FromSeconds(TimeLeft);

                    int weeks = (int)t.Days / 7;
                    int days = t.Days;
                    int hours = t.Hours;
                    int minutes = t.Minutes;

                    if (weeks > 1)
                        list.Add(1153092, (t.Days / 7).ToString()); // Lifespan: ~1_val~ weeks
                    else if (days > 1)
                        list.Add(1153091, t.Days.ToString()); // Lifespan: ~1_val~ days
                    else if (hours > 1)
                        list.Add(1153090, t.Hours.ToString()); // Lifespan: ~1_val~ hours
                    else if (minutes > 1)
                        list.Add(1153089, t.Minutes.ToString()); // Lifespan: ~1_val~ minutes
                    else
                        list.Add(1072517, t.Seconds.ToString()); // Lifespan: ~1_val~ seconds
                }
            }
        }
开发者ID:Ravenwolfe,项目名称:ServUO,代码行数:30,代码来源:BaseDecayingItem.cs

示例12: GetProperties

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

            int condition = GetCondition(m_Uses);
            list.Add(1149847, String.Format("#{0}", condition)); //Condition: ~1_val~
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:Hooks.cs

示例13: GetProperties

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

            if (m_Quest == null)
                return;

            int loc = 1116453; //~1_val~: ~2_val~/~3_val~
            FishQuestObjective obj = m_Quest.GetObjective();

            if (obj == null)
                Delete();

            foreach (KeyValuePair<Type, int[]> kvp in obj.Line)
            {
                int idx = FishQuestHelper.GetIndexForType(kvp.Key);
                list.Add(loc, "#{0}\t{1}\t{2}", FishQuestHelper.Labels[idx], kvp.Value[0].ToString(), kvp.Value[1].ToString());
                loc++;
            }

            object delivery = GetDeliveryInfo();
            if (delivery is string)
                list.Add((string)delivery);
            else
                list.Add((int)delivery);

            list.Add(1076255); //NO-TRADE
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:28,代码来源:ShippingCrate.cs

示例14: AddNameProperty

 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (m_Quest != null && m_Quest.Owner != null)
         list.Add(1116515, m_Quest.Owner.Name);
     else
         list.Add("a shipping crate");
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:ShippingCrate.cs

示例15: GetProperties

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

			if ( !CraftResources.IsStandard( m_Resource ) )
				list.Add( CraftResources.GetLocalizationNumber( m_Resource ) );
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:7,代码来源:BaseAddonContainerDeed.cs


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