Indicates if a game state change must be notified when the minimum number of players is reached.

Namespace: Sfs2X.Requests.Game
Assembly: SmartFox2X (in SmartFox2X.dll) Version: (1.7.0)


public bool NotifyGameStarted { get; set; }

Property Value

Type: Boolean


If this setting is true, the game state (started or stopped) is handled by means of the reserved Room Variable represented by the ReservedRoomVariables.RV_GAME_STARTED constant. Listening to the ROOM_VARIABLES_UPDATE event for this variable allows clients to be notified when the game can start due to minimum number of players being reached.

As the used Room Variable is created as global (see the SFSRoomVariable class description), its update is broadcast outside the Room too: this can be used on the client-side, for example, to show the game state in a list of available games.

The default value is false.

See Also