Click or drag to resize

SFSEventSPECTATOR_TO_PLAYER Field

Dispatched when a spectator is turned to a player inside a Game Room.

Namespace:  Sfs2X.Core
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static readonly string SPECTATOR_TO_PLAYER

Field Value

Type: String
Remarks
This event is fired in response to the SpectatorToPlayerRequest request if the operation is executed successfully.

The Params object contains the following parameters:

ParameterDescription
room(Room) An object representing the Room in which the spectator is turned to player.
user(User) An object representing the spectator who was turned to player.
playerId(int) The player id of the user.
Examples
See the SpectatorToPlayerRequest example.
See Also