CreateSFSGameRequest

Creates a new public or private Game Room, including matching criteria for Players, Invitations and more.


On the server side, a Game Room is represented by the SFSGame Java class, a specialized Room type that provides advanced features during its creation phase. Specific configuration settings are passed through the SFSGameSettings class.

If the Rooom creation is successful, a SFSEvent.ROOM_ADD event is dispatched to all client which subscribed the Group to which the Room belongs, including the creator. Otherwise, a SFSEvent.ROOM_CREATION_ERROR event is returned to the creator's client. Also, if the settings passed in the SFSGameSettings object cause Invitations to join the Game Room to be sent, an SFSEvent.INVITATION event is dispatched to all the recipient clients.

Check the SmartFoxServer documentation for a more in-depth overview of the Game API.