Struct PlayerNames
public struct PlayerNames : IPlayer, ITranslationArgument
- Implements
- Inherited Members
- Extension Methods
Constructors
PlayerNames(Player)
public PlayerNames(Player player)
Parameters
playerPlayer
Fields
CharacterName
public string CharacterName
Field Value
Console
public static readonly PlayerNames Console
Field Value
DisplayName
public string? DisplayName
Field Value
NickName
public string NickName
Field Value
Nil
public static readonly PlayerNames Nil
Field Value
PlayerName
public string PlayerName
Field Value
Steam64
public CSteamID Steam64
Field Value
- CSteamID
WasFound
public bool WasFound
Field Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetDisplayNameOrCharacterName()
public readonly string GetDisplayNameOrCharacterName()
Returns
GetDisplayNameOrNickName()
public readonly string GetDisplayNameOrNickName()
Returns
GetDisplayNameOrPlayerName()
public readonly string GetDisplayNameOrPlayerName()
Returns
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
GetUniqueNames()
Creates an array of names that removed empty or duplcated names. Returned array is always in the order: player name, character name, nick name.
public readonly string[] GetUniqueNames()
Returns
- string[]
Read(ByteReader)
public static PlayerNames Read(ByteReader reader)
Parameters
readerByteReader
Returns
SelectCharacterName(PlayerNames)
public static string SelectCharacterName(PlayerNames names)
Parameters
namesPlayerNames
Returns
SelectNickName(PlayerNames)
public static string SelectNickName(PlayerNames names)
Parameters
namesPlayerNames
Returns
SelectPlayerName(PlayerNames)
public static string SelectPlayerName(PlayerNames names)
Parameters
namesPlayerNames
Returns
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
ToString(bool)
public readonly string ToString(bool steamId)
Parameters
steamIdbool
Returns
Write(ByteWriter, in PlayerNames)
public static void Write(ByteWriter writer, in PlayerNames obj)
Parameters
writerByteWriterobjPlayerNames
Operators
operator ==(PlayerNames, PlayerNames)
public static bool operator ==(PlayerNames left, PlayerNames right)
Parameters
leftPlayerNamesrightPlayerNames
Returns
operator !=(PlayerNames, PlayerNames)
public static bool operator !=(PlayerNames left, PlayerNames right)
Parameters
leftPlayerNamesrightPlayerNames