Table of Contents

Struct LanguageSet

Namespace
Uncreated.Warfare.Translations
Assembly
Uncreated.Warfare.dll
public struct LanguageSet : IEnumerable<WarfarePlayer>, IEnumerable, IEnumerator<WarfarePlayer>, IEnumerator, IDisposable
Implements
Inherited Members
Extension Methods

Constructors

LanguageSet(LanguageInfo, CultureInfo, TimeZoneInfo, bool, Team)

public LanguageSet(LanguageInfo language, CultureInfo culture, TimeZoneInfo timeZone, bool imgui, Team team)

Parameters

language LanguageInfo
culture CultureInfo
timeZone TimeZoneInfo
imgui bool
team Team

LanguageSet(WarfarePlayer)

public LanguageSet(WarfarePlayer player)

Parameters

player WarfarePlayer

LanguageSet(in LanguageSet)

public LanguageSet(in LanguageSet set)

Parameters

set LanguageSet

Fields

Next

public WarfarePlayer Next

Field Value

WarfarePlayer

Properties

Culture

public readonly CultureInfo Culture { get; }

Property Value

CultureInfo

Current

Gets the element in the collection at the current position of the enumerator.

public readonly WarfarePlayer Current { get; }

Property Value

WarfarePlayer

The element in the collection at the current position of the enumerator.

IMGUI

public readonly bool IMGUI { get; }

Property Value

bool

Language

public readonly LanguageInfo Language { get; }

Property Value

LanguageInfo

Players

public readonly ArraySegment<WarfarePlayer> Players { get; }

Property Value

ArraySegment<WarfarePlayer>

Team

public readonly Team Team { get; }

Property Value

Team

TimeZone

public readonly TimeZoneInfo TimeZone { get; }

Property Value

TimeZoneInfo

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public readonly void Dispose()

GatherTransportConnections()

public readonly PooledTransportConnectionList GatherTransportConnections()

Returns

PooledTransportConnectionList

GatherTransportConnections(byte, byte, byte)

public readonly PooledTransportConnectionList GatherTransportConnections(byte x, byte y, byte area)

Parameters

x byte
y byte
area byte

Returns

PooledTransportConnectionList

GetEnumerator()

public readonly LanguageSet GetEnumerator()

Returns

LanguageSet

Includes(WarfarePlayer)

Check if a player's language settings is on par with this set.

public readonly bool Includes(WarfarePlayer player)

Parameters

player WarfarePlayer

Returns

bool

MoveNext()

Advances the enumerator to the next element of the collection.

public bool MoveNext()

Returns

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.

Preserve()

public readonly LanguageSet Preserve()

Returns

LanguageSet

Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

public void Reset()

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.