Photon Quantum 2.1.1

Properties | List of all members
Quantum.PlayerRef Struct Reference

Represents a Quantum player. More...

Properties

static PlayerRef None [get]
 None player has index 0. More...
 

Detailed Description

Represents a Quantum player.

The PlayerRef, in contrast to the player index, is 1-based. The reason is that default(PlayerRef) will return a "null/invalid" player ref struct for convenience. There are automatic cast operators that can cast an int into a PlayerRef.

default(PlayerRef), internally a 0, means NOBODY
PlayerRef, internally 1, is the same as player index 0
PlayerRef, internally 2, is the same as player index 1

Property Documentation

◆ None

PlayerRef Quantum.PlayerRef.None
staticget

None player has index 0.