Table of Contents

Struct TranslationArguments

Namespace
Uncreated.Warfare.Translations.Util
Assembly
Uncreated.Warfare.dll

Shared structure of common data for processing translations.

public readonly ref struct TranslationArguments
Inherited Members

Constructors

TranslationArguments(TranslationValue, bool, bool, LanguageInfo, WarfarePlayer?, Team?, TranslationOptions, CultureInfo, TimeZoneInfo)

public TranslationArguments(TranslationValue valueSet, bool useIMGUI, bool useUncoloredTranslation, LanguageInfo language, WarfarePlayer? player, Team? team, TranslationOptions options, CultureInfo culture, TimeZoneInfo timeZone)

Parameters

valueSet TranslationValue
useIMGUI bool
useUncoloredTranslation bool
language LanguageInfo
player WarfarePlayer
team Team
options TranslationOptions
culture CultureInfo
timeZone TimeZoneInfo

TranslationArguments(TranslationValue, bool, bool, WarfarePlayer, TranslationOptions)

public TranslationArguments(TranslationValue valueSet, bool useIMGUI, bool useUncoloredTranslation, WarfarePlayer player, TranslationOptions options)

Parameters

valueSet TranslationValue
useIMGUI bool
useUncoloredTranslation bool
player WarfarePlayer
options TranslationOptions

Fields

Culture

The format provider to use for this translation.

public readonly CultureInfo Culture

Field Value

CultureInfo

Language

The language to use for this translation.

public readonly LanguageInfo Language

Field Value

LanguageInfo

Options

Flag options for this translation.

public readonly TranslationOptions Options

Field Value

TranslationOptions

Player

Specific player this translation is being formatted for, if any.

public readonly WarfarePlayer? Player

Field Value

WarfarePlayer

PreformattedValue

The unprocessed translation value based on the language given.

public readonly ReadOnlySpan<char> PreformattedValue

Field Value

ReadOnlySpan<char>

Team

Specific team this translation is being formatted for, if any.

public readonly Team? Team

Field Value

Team

TimeZone

The time zone to use for formatting dates.

public readonly TimeZoneInfo TimeZone

Field Value

TimeZoneInfo

UseIMGUI

If Unity Rich Text formatted text should be used instead of TextMeshPro formatted text.

public readonly bool UseIMGUI

Field Value

bool

UseUncoloredTranslation

If the starting color tag should be removed and returned separately (this allows us to get a few more characters out of chat messages).

public readonly bool UseUncoloredTranslation

Field Value

bool

ValueSet

The set of values relating to this translation.

public readonly TranslationValue ValueSet

Field Value

TranslationValue