Table of Contents

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

string

Methods

Always()

This argument will become plural no matter the values of other parameters.

public static PluralAddon Always()

Returns

PluralAddon

ApplyAddon(ITranslationValueFormatter, string, TypedReference, in ValueFormatParameters)

public string ApplyAddon(ITranslationValueFormatter formatter, string text, TypedReference value, in ValueFormatParameters args)

Parameters

formatter ITranslationValueFormatter
text string
value TypedReference
args ValueFormatParameters

Returns

string

WhenArgument(int)

This argument will become plural when argIndex isn't one if it's numeric.

public static PluralAddon WhenArgument(int argIndex)

Parameters

argIndex int

Returns

PluralAddon

Exceptions

ArgumentOutOfRangeException

argIndex is less than zero.

Operators

implicit operator ArgumentFormat(PluralAddon)

public static implicit operator ArgumentFormat(PluralAddon addon)

Parameters

addon PluralAddon

Returns

ArgumentFormat