Class PluralAddon
- Namespace
- Uncreated.Warfare.Translations.Addons
- Assembly
- Uncreated.Warfare.dll
public sealed class PluralAddon : IArgumentAddon
- Inheritance
-
PluralAddon
- Implements
- Inherited Members
Properties
DisplayName
public string DisplayName { get; }
Property Value
Methods
Always()
This argument will become plural no matter the values of other parameters.
public static PluralAddon Always()
Returns
ApplyAddon(ITranslationValueFormatter, string, TypedReference, in ValueFormatParameters)
public string ApplyAddon(ITranslationValueFormatter formatter, string text, TypedReference value, in ValueFormatParameters args)
Parameters
formatterITranslationValueFormattertextstringvalueTypedReferenceargsValueFormatParameters
Returns
WhenArgument(int)
This argument will become plural when argIndex isn't one if it's numeric.
public static PluralAddon WhenArgument(int argIndex)
Parameters
argIndexint
Returns
Exceptions
- ArgumentOutOfRangeException
argIndexis less than zero.
Operators
implicit operator ArgumentFormat(PluralAddon)
public static implicit operator ArgumentFormat(PluralAddon addon)
Parameters
addonPluralAddon