Currently there is only one instance of each minigame. This means, e.g. when only one minigame is activated via the config, only one set of players can play a minigame at the same time.
Minigames should be instantiated as needed so multiple lobbies of the same game can coexist at the same time.
This could be handled by separating the minigames into logic and ui classes. The ui class would then direct each player's interaction to the instance of the minigame they are associated with.
Currently there is only one instance of each minigame. This means, e.g. when only one minigame is activated via the config, only one set of players can play a minigame at the same time.
Minigames should be instantiated as needed so multiple lobbies of the same game can coexist at the same time.
This could be handled by separating the minigames into logic and ui classes. The ui class would then direct each player's interaction to the instance of the minigame they are associated with.