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

Adding or removing player to or from a none static room needs more functionallity #4

Open
Assambra opened this issue Apr 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Assambra
Copy link
Owner

Assambra commented Apr 13, 2024

Adding a player to a room that is not static need a check if it is the first player if yes it is the master player.
Removing a player from a non static room need a check if it is the master if yes getPlayers from room use the first on from the list and make it to the master player than remove it.
Also need a check if it is the master and is the last player in the room it needs to close the room instance -> Remove player from roomPlayerList and remove the room from the globalRoomManager and send command STOP_SERVER.

@Assambra Assambra added the enhancement New feature or request label Apr 13, 2024
@Assambra Assambra changed the title Adding or removing player to non static rooms needs more functionallity Adding or removing player to or from a none static room needs more functionallity Apr 13, 2024
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