Navigation
API > API/Plugins > API/Plugins/PlayTimeLimit
Inheritance Hierarchy
- TSharedFromThis
- FPlayTimeLimitUser
- FPlayTimeLimitUserMock
References
| Module | PlayTimeLimit |
| Header | /Engine/Plugins/Online/OnlineFramework/Source/PlayTimeLimit/Public/PlayTimeLimitUser.h |
| Include | #include "PlayTimeLimitUser.h" |
Syntax
class FPlayTimeLimitUser : public TSharedFromThis< FPlayTimeLimitUser, ESPMode::ThreadSafe >
Remarks
Information about a user we are observing the play time and instituting limits for
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | LastKnownRewardRate | Last known reward rate so we can alert on changes | |
| TOptional< double > | NextNotificationTime | Time for the next notification (or empty for no notification) | |
| FString | OverrideButtonText | ||
| FString | OverrideDialogText | ||
| FString | OverrideDialogTitle | ||
| FUniqueNetIdRef | UserId | The user id |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPlayTimeLimitUser
(
const FUniqueNetIdRef& InUserId |
Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clear override dialog text | ||
| float | Get the last known reward rate | ||
| TOptional< double > | Get the next time we are scheduled to send the user a notification This is for the periodic notification; if the reward rate changes we will immediately display a notification | ||
| int32 | Get the number of minutes this user has played | ||
| float | Get the current reward rate | ||
| FUniqueNetIdRef | GetUserId () |
Get the user's unique id | |
| bool | HasTimeLimit () |
Check if the user has a play time limit | |
| void | Init () |
||
| void | SetLastKnownRewardRate
(
float InLastKnownRewardRate |
Set the last known reward rate | |
| void | SetNextNotificationTime
(
const TOptional< double >& InNextNotificationTime |
Set the next time to send the user a notification | |
| void | Tick () |
Tick |