Click or drag to resize

PlayerToSpectatorRequest Constructor (Room)

Creates a new PlayerToSpectatorRequest instance.

Namespace:  Sfs2X.Requests
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public PlayerToSpectatorRequest(
	Room targetRoom
)

Parameters

targetRoom
Type: Sfs2X.EntitiesRoom
The object corresponding to the Room in which the player should be turned to spectator. If null, the last Room joined by the user is used (default = null).
Remarks
The instance must be passed to the SmartFox.Send method for the request to be performed.
See Also