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
languageLanguageInfocultureCultureInfotimeZoneTimeZoneInfoimguiboolteamTeam
LanguageSet(WarfarePlayer)
public LanguageSet(WarfarePlayer player)
Parameters
playerWarfarePlayer
LanguageSet(in LanguageSet)
public LanguageSet(in LanguageSet set)
Parameters
setLanguageSet
Fields
Next
public WarfarePlayer Next
Field Value
Properties
Culture
public readonly CultureInfo Culture { get; }
Property Value
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
Language
public readonly LanguageInfo Language { get; }
Property Value
Players
public readonly ArraySegment<WarfarePlayer> Players { get; }
Property Value
Team
public readonly Team Team { get; }
Property Value
TimeZone
public readonly TimeZoneInfo TimeZone { get; }
Property Value
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
Returns
- PooledTransportConnectionList
GetEnumerator()
public readonly LanguageSet GetEnumerator()
Returns
Includes(WarfarePlayer)
Check if a player's language settings is on par with this set.
public readonly bool Includes(WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
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
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.