A lobby is a gathering place for a group of matched users before they are served by a room.
Lobby experience is an efficient way to use room or relay server resources.
For more information about brianCloud lobbies feature referring to the link here.
Creating a new lobby
Advance to the Design | Multiplayer | Lobbies page, check the [Lobby Service Enabled] checkbox, then click the [+] button at the right up corner of the Lobby Types list.
The Lobby Type Configuration panel will open, enter a unique Lobby Type Id with no spaces or special characters. The id is used when creating this lobby.
Underneath the Lobby Type Id input box, there are four sections to fill out:
(Note: make sure clicking the Apply button when each tab's fields are filled out)
Description - This is a good field to use to enter a useful description for this lobby. It is recommended to use a short description to accommodate text display concerns in your app.
Filter Script - Attach a cloud code script for filtering the players who can join this lobby. You can set the player's skill rating or attribute as filter conditions in your script, if the script returns false, the play will not able to join.
Server - Use this drop-menu to select the server to associate with. The drop-menu will list all the custom servers which you defined from My Servers page. Once the lobby conditions are met, this server will be spun up.
Team Code - Use this field to define an identifier for a team, the team code will be referenced when players joining this lobby, you can define multiple teams for one lobby.
Min Players - Set the minimum number of players for this team. Room experiences will not start if not satisfying this number.
Max Players - Set the maximum number of players for this team. Other players will not able to join this team once reaching this number.
Auto assign players - Allow lobby members auto-assigned into this team if turn it on.
Section: Lobby times in seconds
Earliest Start - This is the duration that the lobby state change from setup (when the lobby is created) to early. That means during this period, the room experience will not start even lobby is full.
On-time Start - This is the duration that the lobby state change from early to pending. That means during this period if the early start is enabled (i.e. [Allow early start without max participants] checkbox is checked) and the minimum team number of players is met, the room experience will launch immediately. If the early start is not enabled, will lunch the room experience when satisfying the ready-up minimums condition.
Too Late Start - This is the duration that the lobby state change from pending to fail. That means during this period if the force on-time start is enabled (i.e. [Force on-time start without ready] checkbox is checked) and the minimum team number of players is met, the room experience will launch immediately. If the force on-time start is not enabled, will lunch the room experience when satisfying the ready-up minimums condition. (Note: at the final end-point of this time period, the lobby will disband with a message showing "satisfying launch conditions took too long").
Section: Ready Up Minimums
Minimum Number - This is one of the room experience launch conditions for the actual minimum number of required players.
Minimum Percent - This is another one of the room experience launch conditions for the minimum percentage of required players.
(Note: only both of these conditions are satisfied, the room experience will be ready to launch)
Allow early start without max participants - as stated above, at the early state time, if this checkbox is checked and the minimum team number of players is met, the room experience will launch immediately without check ready-up conditions.
Force on-time start without ready - as stated above, at the on-time state time, if this checkbox is checked and the minimum team number of players is met, the room experience will launch immediately without check ready-up conditions.
This part is pretty straightforward, if you defined some JSON config data here, it will be passed to your room server, and will be able to read it through the parameter
"roomConfig" of this lobby.
The configured meta-data of the lobby type will be like this:
"desc": "use this lobby to launch my room server"