本文整理汇总了C#中Server.ObjectPropertyList.Add方法的典型用法代码示例。如果您正苦于以下问题:C# ObjectPropertyList.Add方法的具体用法?C# ObjectPropertyList.Add怎么用?C# ObjectPropertyList.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.ObjectPropertyList
的用法示例。
在下文中一共展示了ObjectPropertyList.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetProperties
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
int color = Color.FromKnownColor(UsageColor).ToArgb();
switch (Command)
{
case AutoPvPStoneCommand.ViewBattles:
{
list.Add("<basefont color=#{0:X6}>Opens the PvP battles menu<basefont color=#ffffff>", color);
}
break;
case AutoPvPStoneCommand.ViewProfiles:
{
list.Add("<basefont color=#{0:X6}>Opens the PvP profiles menu<basefont color=#ffffff>", color);
}
break;
case AutoPvPStoneCommand.GlobalConfig:
{
list.Add("<basefont color=#{0:X6}>Use: Opens the PvP control panel<basefont color=#ffffff>", color);
}
break;
}
}
示例2: 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~
}
示例3: AddNameProperties
public override void AddNameProperties( ObjectPropertyList list )
{
base.AddNameProperties( list );
list.Add( 1041350 ); // faction item
list.Add( 1060584, m_UsesRemaining.ToString() ); // uses remaining: ~1_val~
}
示例4: AddNameProperties
public override void AddNameProperties( ObjectPropertyList list )
{
if ( IsUsable() )
list.Add( 1112130 ); // a lever
else
list.Add( 1112129 ); // a lever (unusable)
}
示例5: AddNameProperty
public override void AddNameProperty(ObjectPropertyList list)
{
if(m_Label != null && m_Label.Length > 0)
list.Add(1049519, m_Label); // a bottle of ~1_DRINK_NAME~
else
list.Add(1049519, String.Format("#{0}", DistillationSystem.GetLabel(m_Liquor, m_IsStrong))); // a bottle of ~1_DRINK_NAME~
}
示例6: AddNameProperty
public override void AddNameProperty( ObjectPropertyList list )
{
if ( Amount != 1 )
list.Add( String.Format( "{0} bloody bandages", this.Amount ) );
else
list.Add( "a bloody bandage" );
}
示例7: GetProperties
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
if (m_KillEntry == null || m_KillEntry.KillIndex < 0 || m_KillEntry.KillIndex >= HuntingTrophyInfo.Infos.Count)
return;
HuntingTrophyInfo info = HuntingTrophyInfo.Infos[m_KillEntry.KillIndex];
if (m_Owner != null)
list.Add(1155708, m_Owner.Name); // Hunter: ~1_NAME~
if (m_KillEntry.DateKilled != DateTime.MinValue)
list.Add(1155709, m_KillEntry.DateKilled.ToShortDateString()); // Date of Kill: ~1_DATE~
if (m_KillEntry.Location != null)
list.Add(1061114, m_KillEntry.Location); // Location: ~1_val~
list.Add(1155718, info.Species.ToString());
if (info.MeasuredBy == MeasuredBy.Length)
list.Add(1155711, m_KillEntry.Measurement.ToString()); // Length: ~1_VAL~
else if (info.MeasuredBy == MeasuredBy.Wingspan)
list.Add(1155710, m_KillEntry.Measurement.ToString()); // Wingspan: ~1_VAL~
else
list.Add(1072789, m_KillEntry.Measurement.ToString()); // Weight: ~1_WEIGHT~
}
示例8: GetProperties
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
list.Add(1060584, m_UsesRemaining.ToString()); // uses remaining: ~1_val~
list.Add("skill required: healing");
}
示例9: 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 ...
}
}
}
示例10: GetProperties
public override void GetProperties( ObjectPropertyList list )
{
if ( c_Owner != null )
list.Add( "a renter's license belonging to " + c_Owner.Name );
else
list.Add( "a renter's license" );
}
示例11: 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
}
示例12: 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 ); // boards
}
示例13: GetProperties
public override void GetProperties( ObjectPropertyList list )
{
list.Add( 1114057, this.Name ); // ~1_VAL~
list.Add( 1038021 ); // blessed
list.Add( 1070722, "(Enchants Blue Mage Clothing)" ); // ~1_NOTHING~
list.Add( 1042971, "<ALIGN='CENTER'><BASEFONT COLOR='#007FFF'>*{0}*</BASEFONT></ALIGN>", Enum.GetName( typeof( BlueEnhance ), m_Enhance ) ); // ~1_NOTHING~
}
示例14: 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);
}
示例15: GetProperties
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
list.Add( 1060655 ); // large bulk order
//string subString = "amount to tame";
list.Add( "amount to tame: {0}", m_AmountMax.ToString() );
for ( int i = 0; i < m_Entries.Length; ++i )
{
string s = m_Entries[i].Details.AnimalName;
int capsbreak = s.IndexOfAny("ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(),1);
if( capsbreak > -1 )
{
string secondhalf = s.Substring( capsbreak );
string firsthalf = s.Substring(0, capsbreak );
list.Add( 1060658 + i, "{0} {1}\t{2}", firsthalf, secondhalf, m_Entries[i].Amount ); // ~1_val~: ~2_val~
}
else
{
list.Add( 1060658 + i, "{0}\t{1}", m_Entries[i].Details.AnimalName, m_Entries[i].Amount ); // ~1_val~: ~2_val~
}
}
}