-
Notifications
You must be signed in to change notification settings - Fork 22
Example: 4 MasterServer
This module combines all of the other modules to provide a MatchMaking service. It gets the list of users that are authenticated from the Auth Module. It tracks the active servers from the ProcessSpawners to create new Matches that are registered into the GameManager.
It will receive StartMatchMaking and StopMatchMaking msgs from clients. It will then add them into a pool of players looking for a match. There is a minimum number of players that can be configured before a match will start. There is currently no form of ELO tracking to separate games based on skill. But that can be added based on your needs.
Once the minimum numbers of players is met the MasterServer will look through the collection of registered spawners to find the least busy. It will create a new process on that server with the configured scene if specified. Once that server starts up it will connect back to the master to register itself as available.
After the new server is online all of the players that were grouped for the new match are sent the connection details. They will still stay connected to the master server at all times. They will use their NetworkManager to connect to the game servers NetworkManager.