Constructor Player
Player(string, string, Dictionary<string, PlayerDataObject>, string, DateTime, DateTime, PlayerProfile)
Information about a specific player creating, joining, or already in a lobby.
Declaration
[Preserve]
public Player(string id = null, string connectionInfo = null, Dictionary<string, PlayerDataObject> data = null, string allocationId = null, DateTime joined = default, DateTime lastUpdated = default, PlayerProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | The unique identifier for the player. If not provided for a create or join request, it will be set to the ID of the caller. |
string | connectionInfo | Connection information for connecting to a relay with this player. |
Dictionary<string, PlayerDataObject> | data | Custom game-specific properties that apply to an individual player (e.g. |
string | allocationId | The |
DateTime | joined | The time at which the player joined the lobby. |
DateTime | lastUpdated | The last time the metadata for this player was updated. |
PlayerProfile | profile | profile param |