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
Number
Player number (starting from 1
)
public int Number { get; }
Property Value
Type
Player type
public PlayerType Type { get; }
Property Value
Methods
Equals(Player?)
public virtual bool Equals(Player? other)
Parameters
other
Player
Returns
Equals(object?)
public override sealed bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override sealed int GetHashCode()
Returns
IsLocal()
public bool IsLocal()
Returns
IsRemote()
public bool IsRemote()
Returns
IsSpectator()
public bool IsSpectator()
Returns
ToString()
public override sealed string ToString()
Returns
Explicit Interface Implementations
operator ==(Player?, Player?)
static bool operator ==(Player? left, Player? right)
Parameters
Returns
operator !=(Player?, Player?)
static bool operator !=(Player? left, Player? right)