Table of Contents

Struct PlayerNames

Namespace
Uncreated.Warfare.Players
Assembly
Uncreated.Warfare.dll
public struct PlayerNames : IPlayer, ITranslationArgument
Implements
Inherited Members
Extension Methods

Constructors

PlayerNames(Player)

public PlayerNames(Player player)

Parameters

player Player

Fields

CharacterName

public string CharacterName

Field Value

string

Console

public static readonly PlayerNames Console

Field Value

PlayerNames

DisplayName

public string? DisplayName

Field Value

string

NickName

public string NickName

Field Value

string

Nil

public static readonly PlayerNames Nil

Field Value

PlayerNames

PlayerName

public string PlayerName

Field Value

string

Steam64

public CSteamID Steam64

Field Value

CSteamID

WasFound

public bool WasFound

Field Value

bool

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetDisplayNameOrCharacterName()

public readonly string GetDisplayNameOrCharacterName()

Returns

string

GetDisplayNameOrNickName()

public readonly string GetDisplayNameOrNickName()

Returns

string

GetDisplayNameOrPlayerName()

public readonly string GetDisplayNameOrPlayerName()

Returns

string

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

reader ByteReader

Returns

PlayerNames

SelectCharacterName(PlayerNames)

public static string SelectCharacterName(PlayerNames names)

Parameters

names PlayerNames

Returns

string

SelectNickName(PlayerNames)

public static string SelectNickName(PlayerNames names)

Parameters

names PlayerNames

Returns

string

SelectPlayerName(PlayerNames)

public static string SelectPlayerName(PlayerNames names)

Parameters

names PlayerNames

Returns

string

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

steamId bool

Returns

string

Write(ByteWriter, in PlayerNames)

public static void Write(ByteWriter writer, in PlayerNames obj)

Parameters

writer ByteWriter
obj PlayerNames

Operators

operator ==(PlayerNames, PlayerNames)

public static bool operator ==(PlayerNames left, PlayerNames right)

Parameters

left PlayerNames
right PlayerNames

Returns

bool

operator !=(PlayerNames, PlayerNames)

public static bool operator !=(PlayerNames left, PlayerNames right)

Parameters

left PlayerNames
right PlayerNames

Returns

bool