本文整理汇总了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~
}
示例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);
}
示例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~
}
示例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 ...
}
}
}
示例5: AddNameProperties
public override void AddNameProperties( ObjectPropertyList list )
{
base.AddNameProperties( list );
if( m_IsShipwreckedItem )
list.Add( 1041645 ); // recovered from a shipwreck
}
示例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
}
示例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" );
}
示例8: GetProperties
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
if (this.m_IsRewardItem)
list.Add(1076217); // 1st Year Veteran Reward
}
示例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));
}
示例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
}
示例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~
}
示例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
}
示例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~
}
示例14: GetProperties
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
list.Add( 1074502 ); // It looks explosive.
list.Add( 1075085 ); // Requirement: Mondain's Legacy
}
示例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);
}