Skip to content

Adjust multiplayer logic to accommodate for referees spectating in-game#37152

Open
bdach wants to merge 14 commits intoppy:masterfrom
bdach:referee-in-room
Open

Adjust multiplayer logic to accommodate for referees spectating in-game#37152
bdach wants to merge 14 commits intoppy:masterfrom
bdach:referee-in-room

Conversation

@bdach
Copy link
Copy Markdown
Collaborator

@bdach bdach commented Mar 30, 2026

This PR is a corollary of ppy/osu-server-spectator#453 and all of the dispensations referee users in a multiplayer have received therein. The goal here is to allow access to all relevant room management functions even if the referee in question isn't host, as well as to disallow access to all non-relevant functions to do with the actual match gameplay.

I'm not going to lie, this logic is ugly. I would argue that it already was ugly on master and my goal was to operate with as light a touch as possible myself. But you could see this as copping out and that I should try to refactor some of this. I will try - but only after someone else's seen the initial approach and deemed it unsuitable.

The logic in MatchStartControl is awful - there are so many moving pieces of state that dictate what can happen when with all the buttons, and yes, I am making it worse here.

This time there is some test coverage. Not everything is covered, but the coverage should be on par in all components and pieces of relevant logic I touched that already had tests covering them. On that note, please forgive the diffstat size, but the tests are most of that size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Pending Review

Development

Successfully merging this pull request may close these issues.

Add way of realtime interfacing with multiplayer rooms from outside the game

1 participant