Indicates whether this user is a player (playerId greater than 0) in the passed Room or not.

Namespace: Sfs2X.Entities
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.0.0 (1.7.0)

Syntax

C#
public bool IsPlayerInRoom(
	Room room
)

Parameters

room
Type: Sfs2X.Entities..::..Room
The object representing the Room where to check if this user is a player.

Return Value

Type: Boolean
true if this user is a player in the passed Room.

Implements

User..::..IsPlayerInRoom(Room)

Remarks

Non-Game Rooms always return false.

If a user can join one Game Room at a time only, use the IsPlayer property.

See Also