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