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
valueSetTranslationValueuseIMGUIbooluseUncoloredTranslationboollanguageLanguageInfoplayerWarfarePlayerteamTeamoptionsTranslationOptionscultureCultureInfotimeZoneTimeZoneInfo
TranslationArguments(TranslationValue, bool, bool, WarfarePlayer, TranslationOptions)
public TranslationArguments(TranslationValue valueSet, bool useIMGUI, bool useUncoloredTranslation, WarfarePlayer player, TranslationOptions options)
Parameters
valueSetTranslationValueuseIMGUIbooluseUncoloredTranslationboolplayerWarfarePlayeroptionsTranslationOptions
Fields
Culture
The format provider to use for this translation.
public readonly CultureInfo Culture
Field Value
Language
The language to use for this translation.
public readonly LanguageInfo Language
Field Value
Options
Flag options for this translation.
public readonly TranslationOptions Options
Field Value
Player
Specific player this translation is being formatted for, if any.
public readonly WarfarePlayer? Player
Field Value
PreformattedValue
The unprocessed translation value based on the language given.
public readonly ReadOnlySpan<char> PreformattedValue
Field Value
Team
Specific team this translation is being formatted for, if any.
public readonly Team? Team
Field Value
TimeZone
The time zone to use for formatting dates.
public readonly TimeZoneInfo TimeZone
Field Value
UseIMGUI
If Unity Rich Text formatted text should be used instead of TextMeshPro formatted text.
public readonly bool UseIMGUI
Field Value
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
ValueSet
The set of values relating to this translation.
public readonly TranslationValue ValueSet