Photon Unity Networking 2 2.45

Public Attributes | List of all members
OpJoinRandomRoomParams Class Reference

Parameters for the matchmaking of JoinRandomRoom and JoinRandomOrCreateRoom. More...

Public Attributes

Hashtable ExpectedCustomRoomProperties
 The custom room properties a room must have to fit. All key-values must be present to match. In SQL Lobby, use SqlLobbyFilter instead. More...
 
int ExpectedMaxPlayers
 Filters by the MaxPlayers value of rooms. More...
 
MatchmakingMode MatchingType
 The MatchmakingMode affects how rooms get filled. By default, the server fills rooms. More...
 
TypedLobby TypedLobby
 The lobby in which to match. The type affects how filters are applied. More...
 
string SqlLobbyFilter
 SQL query to filter room matches. For default-typed lobbies, use ExpectedCustomRoomProperties instead. More...
 
string[] ExpectedUsers
 The expected users list blocks player slots for your friends or team mates to join the room, too. More...
 
object Ticket
 Ticket for matchmaking. Provided by a plugin / server and contains a list of party members who should join the same room (among other things). More...
 

Detailed Description

Parameters for the matchmaking of JoinRandomRoom and JoinRandomOrCreateRoom.

More about matchmaking: .

Member Data Documentation

◆ ExpectedCustomRoomProperties

Hashtable ExpectedCustomRoomProperties

The custom room properties a room must have to fit. All key-values must be present to match. In SQL Lobby, use SqlLobbyFilter instead.

◆ ExpectedMaxPlayers

int ExpectedMaxPlayers

Filters by the MaxPlayers value of rooms.

◆ ExpectedUsers

string [] ExpectedUsers

The expected users list blocks player slots for your friends or team mates to join the room, too.

See: https://doc.photonengine.com/en-us/pun/v2/lobby-and-matchmaking/matchmaking-and-lobby#matchmaking_slot_reservation

◆ MatchingType

MatchmakingMode MatchingType

The MatchmakingMode affects how rooms get filled. By default, the server fills rooms.

◆ SqlLobbyFilter

string SqlLobbyFilter

SQL query to filter room matches. For default-typed lobbies, use ExpectedCustomRoomProperties instead.

◆ Ticket

object Ticket

Ticket for matchmaking. Provided by a plugin / server and contains a list of party members who should join the same room (among other things).

◆ TypedLobby

The lobby in which to match. The type affects how filters are applied.