Table of Contents

Struct PlayerHandle

Namespace
Backdash
Assembly
Backdash.dll

Session player identification .

public readonly struct PlayerHandle : IUtf8SpanFormattable, IEquatable<PlayerHandle>, IEqualityOperators<PlayerHandle, PlayerHandle, bool>
Implements
Inherited Members

Fields

Number

Player number (starting from 1)

public readonly int Number

Field Value

int

Type

Player type

public readonly PlayerType Type

Field Value

PlayerType

Properties

Index

Player number (starting from 0)

public int Index { get; }

Property Value

int

Methods

Equals(PlayerHandle)

public bool Equals(PlayerHandle other)

Parameters

other PlayerHandle

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

IsLocal()

Returns true if player is Local

public bool IsLocal()

Returns

bool

IsRemote()

Returns true if player is Remote

public bool IsRemote()

Returns

bool

IsSpectator()

Returns true if player is Spectator

public bool IsSpectator()

Returns

bool

ToString()

public override string ToString()

Returns

string

Explicit Interface Implementations

operator ==(PlayerHandle, PlayerHandle)

static bool operator ==(PlayerHandle left, PlayerHandle right)

Parameters

left PlayerHandle
right PlayerHandle

Returns

bool

operator !=(PlayerHandle, PlayerHandle)

static bool operator !=(PlayerHandle left, PlayerHandle right)

Parameters

left PlayerHandle
right PlayerHandle

Returns

bool