Interface IUnturnedUserDirectory
The service used for querying Unturned users. Unlike
Namespace: OpenMod.Unturned.Users
Assembly: OpenMod.Unturned.dll
Syntax
public interface IUnturnedUserDirectory
Methods
| Improve this Doc View SourceFindPendingUser(CSteamID)
Tries to find a pending Unturned player user based on Steam ID.
Declaration
UnturnedPendingUser FindPendingUser(CSteamID steamId)
Parameters
Type | Name | Description |
---|---|---|
CSteamID | steamId | The Steam ID of the pending Unturned user to look for. |
Returns
Type | Description |
---|---|
UnturnedPendingUser | The pending Unturned user if found; otherwise, null. |
FindUser(CSteamID)
Tries to find a Unturned user based on Steam ID.
Declaration
UnturnedUser FindUser(CSteamID steamId)
Parameters
Type | Name | Description |
---|---|---|
CSteamID | steamId | The Steam ID of the Unturned user to look for. |
Returns
Type | Description |
---|---|
UnturnedUser | The Unturned user if found; otherwise, null. |
FindUser(String, UserSearchMode)
Tries to find a Unturned player user based on ID or name depending on
Declaration
UnturnedUser FindUser(string searchString, UserSearchMode searchMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | searchString | Name or ID of the user. The value depends on |
UserSearchMode | searchMode | The search mode. See |
Returns
Type | Description |
---|---|
UnturnedUser | The Unturned user if found; otherwise, null. |
GetOnlineUsers()
Gets all online Unturned users.
Declaration
ICollection<UnturnedUser> GetOnlineUsers()
Returns
Type | Description |
---|---|
ICollection<UnturnedUser> | All online Unturned users. |
GetPendingUser(SteamPending)
Gets the Unturned user instance for the given pending player.
Declaration
UnturnedPendingUser GetPendingUser(SteamPending pending)
Parameters
Type | Name | Description |
---|---|---|
SteamPending | pending | The pending player to get the Unturned user of. |
Returns
Type | Description |
---|---|
UnturnedPendingUser | The Unturned user instance of the given pending player. |
GetPendingUsers()
Gets all pending Unturned users.
Declaration
ICollection<UnturnedPendingUser> GetPendingUsers()
Returns
Type | Description |
---|---|
ICollection<UnturnedPendingUser> | All pending Unturned users. |
GetUser(Player)
Gets the Unturned user instance for the given player.
Declaration
UnturnedUser GetUser(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player to get the Unturned user of. |
Returns
Type | Description |
---|---|
UnturnedUser | The Unturned user instance of the given player. |