當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。