本文整理汇总了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");
}
示例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);
}
示例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
}
示例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" );
}
示例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 ...
}
}
}
示例6: GetProperties
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
list.Add( 1074502 ); // It looks explosive.
list.Add( 1075085 ); // Requirement: Mondain's Legacy
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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");
}
示例13: AddNameProperty
public override void AddNameProperty(ObjectPropertyList list)
{
if (Amount > 1)
list.Add("{0} Pâtes", Amount);
else
list.Add("{0} Pâte", Amount);
}
示例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~
}
示例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() );
}