The User type exposes the following members.

Methods

  NameDescription
Public methodContainsVariable
Check if a UserVariable exists
Public methodGetPlayerId
Return the playerId for the specific Room.
Public methodGetVariable
Get a UserVariable
Public methodGetVariables
Get all the User Variables
Public methodIsAdmin
Return true if the User is logged in as administrator user
Public methodIsGuest
Return true if the User is logged in as guest user
Public methodIsJoinedInRoom
Return true if the User is joined in the specified Room
Public methodIsModerator
Return true if the User is logged in as moderator user
Public methodIsPlayerInRoom
Return true if the User is a Player in the specified Room
Public methodIsSpectatorInRoom
Return true if the User is a Spectator in the specified Room
Public methodIsStandardUser
Return true if the User is logged in as standard user

Properties

  NameDescription
Public propertyId
Get the unique User Id
Public propertyIsItMe
Return true if the User object is the client's User object, also known as SmartFox.MySelf
Public propertyIsPlayer
Return true if the User is a Player (playerId > 0) in the last joined Room
Public propertyIsSpectator
Return true if the User is a Spectator (playerId < 0) in the last joined Room
Public propertyName
The user name
Public propertyPlayerId
Get the playerId of the User.
Public propertyPrivilegeId
Get the privilegeId of the User
Public propertyProperties
A generic object that can be used to store any User custom data needed at runtime.
Public propertyUserManager
Get the UserManager of this User

See Also