Click or drag to resize

SFSUserIsPlayer Property

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

Namespace:  Sfs2X.Entities
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.7.11.0 (1.7.11)
Syntax
C#
public bool IsPlayer { get; }

Property Value

Type: Boolean

Implements

UserIsPlayer
Remarks
Non-Game Rooms always return false.

If the user is inside multiple Game Rooms at the same time, use the IsPlayerInRoom(Room) method.

See Also