Table of Contents

Class Translation<T0, T1, T2, T3, T4, T5, T6, T7, T8>

Namespace
Uncreated.Warfare.Translations
Assembly
Uncreated.Warfare.dll
public class Translation<T0, T1, T2, T3, T4, T5, T6, T7, T8> : Translation, IDisposable

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
T8
Inheritance
Translation<T0, T1, T2, T3, T4, T5, T6, T7, T8>
Implements
Inherited Members
Extension Methods

Constructors

Translation(string, TranslationOptions, ArgumentFormat, ArgumentFormat, ArgumentFormat, ArgumentFormat, ArgumentFormat, ArgumentFormat, ArgumentFormat, ArgumentFormat, ArgumentFormat)

public Translation(string defaultValue, TranslationOptions options = TranslationOptions.None, ArgumentFormat arg0Fmt = default, ArgumentFormat arg1Fmt = default, ArgumentFormat arg2Fmt = default, ArgumentFormat arg3Fmt = default, ArgumentFormat arg4Fmt = default, ArgumentFormat arg5Fmt = default, ArgumentFormat arg6Fmt = default, ArgumentFormat arg7Fmt = default, ArgumentFormat arg8Fmt = default)

Parameters

defaultValue string
options TranslationOptions
arg0Fmt ArgumentFormat
arg1Fmt ArgumentFormat
arg2Fmt ArgumentFormat
arg3Fmt ArgumentFormat
arg4Fmt ArgumentFormat
arg5Fmt ArgumentFormat
arg6Fmt ArgumentFormat
arg7Fmt ArgumentFormat
arg8Fmt ArgumentFormat

Properties

ArgumentCount

public override int ArgumentCount { get; }

Property Value

int

FormatArg0

public ArgumentFormat FormatArg0 { get; set; }

Property Value

ArgumentFormat

FormatArg1

public ArgumentFormat FormatArg1 { get; set; }

Property Value

ArgumentFormat

FormatArg2

public ArgumentFormat FormatArg2 { get; set; }

Property Value

ArgumentFormat

FormatArg3

public ArgumentFormat FormatArg3 { get; set; }

Property Value

ArgumentFormat

FormatArg4

public ArgumentFormat FormatArg4 { get; set; }

Property Value

ArgumentFormat

FormatArg5

public ArgumentFormat FormatArg5 { get; set; }

Property Value

ArgumentFormat

FormatArg6

public ArgumentFormat FormatArg6 { get; set; }

Property Value

ArgumentFormat

FormatArg7

public ArgumentFormat FormatArg7 { get; set; }

Property Value

ArgumentFormat

FormatArg8

public ArgumentFormat FormatArg8 { get; set; }

Property Value

ArgumentFormat

Methods

GetArgumentFormat(int)

Returns the format of a given argument index.

public override ArgumentFormat GetArgumentFormat(int index)

Parameters

index int

Returns

ArgumentFormat

Translate(scoped in TranslationArguments, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?)

public string Translate(scoped in TranslationArguments args, T0? arg0, T1? arg1, T2? arg2, T3? arg3, T4? arg4, T5? arg5, T6? arg6, T7? arg7, T8? arg8)

Parameters

args TranslationArguments
arg0 T0
arg1 T1
arg2 T2
arg3 T3
arg4 T4
arg5 T5
arg6 T6
arg7 T7
arg8 T8

Returns

string

UnsafeTranslateIntl(in TranslationArguments, object?[])

Overridden in generic translation classes to cast the arguments without reflection.

protected override string UnsafeTranslateIntl(in TranslationArguments arguments, object?[] formattingParameters)

Parameters

arguments TranslationArguments
formattingParameters object[]

Returns

string

Remarks

formattingParameters have already been verified to be the correct type by this point.