The User type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| ContainsVariable |
Check if a UserVariable exists
| |
| GetPlayerId |
Return the playerId for the specific Room.
| |
| GetVariable |
Get a UserVariable
| |
| GetVariables |
Get all the User Variables
| |
| IsAdmin |
Return true if the User is logged in as administrator user
| |
| IsGuest |
Return true if the User is logged in as guest user
| |
| IsJoinedInRoom |
Return true if the User is joined in the specified Room
| |
| IsModerator |
Return true if the User is logged in as moderator user
| |
| IsPlayerInRoom |
Return true if the User is a Player in the specified Room
| |
| IsSpectatorInRoom |
Return true if the User is a Spectator in the specified Room
| |
| IsStandardUser |
Return true if the User is logged in as standard user
|
Properties
| Name | Description | |
|---|---|---|
| Id |
Get the unique User Id
| |
| IsItMe |
Return true if the User object is the client's User object, also known as SmartFox.MySelf | |
| IsPlayer |
Return true if the User is a Player (playerId > 0) in the last joined Room
| |
| IsSpectator |
Return true if the User is a Spectator (playerId < 0) in the last joined Room
| |
| Name |
The user name
| |
| PlayerId |
Get the playerId of the User.
| |
| PrivilegeId |
Get the privilegeId of the User
| |
| Properties |
A generic object that can be used to store any User custom data needed at runtime.
| |
| UserManager |
Get the UserManager of this User
|