IPlayerDataService
Provides access to player data, including respective events and methods for modifying a player.
Methods
FindUserByLicense
Finds the User object corresponding to the
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to find. |
| withChangeTracking | bool | Specifies whether to add AsNoTracking to the query or not. |
Returns
| Name | Type |
|---|---|
| User | The corresponding |
AnyPlayerIdMatchesWithUserId
Checks whether any identifier of the specified player matches with any identifier of the specified user.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player. |
| user | User | The user. |
Returns
| Name | Type |
|---|---|
| bool | A boolean. |
IncreaseRank
Increases the rank of the specified player to the next rank with higher required experience points. In order to use this the ProgressionSystem feature flag must be enabled.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player. |
DecreaseRank
Decreases the rank of the specified player to the previous rank with lower required experience points. In order to use this the ProgressionSystem feature flag must be enabled.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player. |
Events
PlayerDutyStatusChanged
Fires when the duty status of a player has been changed.
Type: EventHandler<PlayerDutyStatusChangeEventArgs>
PlayerRankChanged
Fires when a player's rank has been changed.
Type: EventHandler<PlayerRankChangeEventArgs>
PlayerDivisionChanged
Fires when a player's division has been changed.
Type: EventHandler<PlayerDivisionChangeEventArgs>