-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Milestone
Description
Currently, the server broadcasts all games to all players. However, games marked as PRIVATE should not be broadcasted at all and games marked as FRIENDS should only be sent to friends.
- Remove the unused
com.faforever.server.game.GameAccess - Don't serialize
visibilitywhen sending games to client (incom.faforever.server.integration.legacy.transformer.GameResponsesTransformer#game) - Implement a method similar to
com.faforever.server.game.GameService#markDirtythat allows specifying a list of players to send to - Extend
com.faforever.server.client.DelayedResponseso that a list of receivers can be specified. The list should be nullable (so make its getter return an Optional), in which case it's considered a broadcast (document this in the getter) - Refactor
com.faforever.server.client.ClientService#broadcastDelayedResponsesso that it either broadcasts the response or sends it to the list of recipients. - Adjust and add unit tests accordingly