Table of Contents

Class Player

Namespace
Backdash
Assembly
Backdash.dll

Holds data of a player to be added to IRollbackSession<TInput>.

public abstract class Player : IEquatable<Player>, IEqualityOperators<Player, Player, bool>
Inheritance
Player
Implements
Derived
Inherited Members

Properties

Handle

Player handler, used to identify any player in session.

public PlayerHandle Handle { get; }

Property Value

PlayerHandle

Number

Player number (starting from 1)

public int Number { get; }

Property Value

int

Type

Player type

public PlayerType Type { get; }

Property Value

PlayerType

Methods

Equals(Player?)

public virtual bool Equals(Player? other)

Parameters

other Player

Returns

bool

Equals(object?)

public override sealed bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override sealed 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 sealed string ToString()

Returns

string

Explicit Interface Implementations

operator ==(Player?, Player?)

static bool operator ==(Player? left, Player? right)

Parameters

left Player
right Player

Returns

bool

operator !=(Player?, Player?)

static bool operator !=(Player? left, Player? right)

Parameters

left Player
right Player

Returns

bool