SmartFoxServer Silverlight API
SwitchPlayer Method
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► SwitchPlayer()()()
Members

Icon | Member | Description
--- | --- | ---
| SwitchPlayer()()() | SwitchPlayer(Int32)
| SwitchPlayer(Int32) | Turn a player inside a game room into a spectator. All players have their player id property set to a value > 0; when a spectator becomes a player, his playerId is set to -1. If the user joined more than one room, the id of the room where the switch should occurr must be passed to this method. The switch operation is successful only if at least one spectator slot is available in the room.

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