Photon Unity Networking 2 2.30

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...
 
byte 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...
 

Detailed Description

Parameters for the matchmaking of JoinRandomRoom and JoinRandomOrCreateRoom.

More about matchmaking: https://doc.photonengine.com/en-us/pun/current/manuals-and-demos/matchmaking-and-lobby.

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

byte 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.

◆ TypedLobby

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