SmartFoxServer Silverlight API
SwitchSpectator Method
NamespacesSmartFoxClientAPISmartFoxClientSwitchSpectator()()()
Members
IconMemberDescription
SwitchSpectator()()()
SwitchSpectator(Int32)
Turn a spectator inside a game room into a player.
All spectators have their player id property set to -1; when a spectator becomes a player, his player id gets a number > 0, representing the player number. The player id values are assigned by the server, based on the order in which the players joined the room.
If the user joined more than one room, the id of the room where the switch should occur must be passed to this method.
The switch operation is successful only if at least one player slot is available in the room.

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)