identify whether a room has started?

swfly
edited July 2011 in DotNet
hi there.
by now i'm trying to find some ways to block the requests of joining a room when a room is full or has started. i predict to accomplish this by giving the room a mark and count the present number of players?
but can i do this without modifying server? i want to do this by only writing some codes in the client.
thanks.

Comments

  • We have an update for the Lite application in the works, which implements exactly those cases.
    Right now, you have to modify the server or adjust the client.

    As client solution, you could (e.g.) set a property once the game starts. Any client that joins checks for the property first and leaves, if it should not be in there.
    As server solution, you are about right: mark rooms that are full or "started" and check for these properties in the operation join. Maybe Boris can provide a few details about this - he's our server guy :)
  • right now you would modify/override HandleJoinOperation and return null if the game is full.
  • ok thank you guys, i'll go and check out the solutions.