本文整理汇总了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);
}
示例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~
}
示例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~
}
示例4: GetProperties
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
// as if the name wasn't enough..
list.Add( 1017410 ); // Special Fishing Net
}
示例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~
}
示例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));
}
示例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 );
}
示例8: AddNameProperties
public override void AddNameProperties( ObjectPropertyList list )
{
base.AddNameProperties( list );
if ( m_IsShipwreckedItem )
list.Add( 1041645 ); // recovered from a shipwreck
}
示例9: AddNameProperties
public override void AddNameProperties( ObjectPropertyList list )
{
base.AddNameProperties( list );
if ( m_Charges >= 0 )
list.Add( 1060658, "Charges\t{0}", m_Charges.ToString() );
}
示例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
}
示例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
}
}
}
示例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~
}
示例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
}
示例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");
}
示例15: GetProperties
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
if ( !CraftResources.IsStandard( m_Resource ) )
list.Add( CraftResources.GetLocalizationNumber( m_Resource ) );
}