Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint to start games from a lobby #9

Closed
CrsiX opened this issue Mar 28, 2023 · 0 comments
Closed

Endpoint to start games from a lobby #9

CrsiX opened this issue Mar 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@CrsiX
Copy link
Member

CrsiX commented Mar 28, 2023

Require an endpoint to start a game from the lobby, e.g. POST /api/v2/lobby/startGame for the creator/owner of the lobby only. It should also trigger WebSocket notifications to all connected users in the specified lobby, so that they know the game has started. I wouldn't use UpdateGameData, but a similar struct which also includes the lobby ID that just got closed.

The owner will generate the initial map on its client and upload it along this request, i.e. startGame needs to accept the lobby as well as the initial game data. Afterwards, the game endpoints may be used on that game as well.

@CrsiX CrsiX added the enhancement New feature or request label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant