SFSUserIsSpectatorInRoom Method |
Indicates whether this user is a spectator (playerId lower than 0) in the passed Room or not.
Namespace:
Sfs2X.Entities
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public bool IsSpectatorInRoom(
Room room
)
Parameters
- room
- Type: Sfs2X.EntitiesRoom
The object representing the Room where to check if this user is a spectator.
Return Value
Type:
Booleantrue if this user is a spectator in the passed Room.
Implements
UserIsSpectatorInRoom(Room)Remarks
Non-Game Rooms always return
false.
If a user can join one Game Room at a time only, use the
IsSpectator property.
See Also