Navigation
API > API/Plugins > API/Plugins/PlayTimeLimit
Inheritance Hierarchy
- TSharedFromThis
- FPlayTimeLimitUser
- FPlayTimeLimitUserMock
References
| Module | PlayTimeLimit |
| Header | /Engine/Plugins/Online/OnlineFramework/Source/PlayTimeLimit/Public/PlayTimeLimitUserMock.h |
| Include | #include "PlayTimeLimitUserMock.h" |
Syntax
class FPlayTimeLimitUserMock : public FPlayTimeLimitUser
Remarks
Mock implementation of FPlayTimeLimitUser
Variables
| Type | Name | Description | |
|---|---|---|---|
| const bool | bHasTimeLimit | Do the time limits apply to the user? | |
| const double | PlayTimeMinutesStart | Override time played. Effective time played is PlayTimeMinutesStart + (Now - TimeOverrideSet) | |
| const double | TimeOverrideSet | The time this override was set. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPlayTimeLimitUserMock
(
const FUniqueNetIdRef& InUserId, |
Overridden from FPlayTimeLimitUser
| Type | Name | Description | |
|---|---|---|---|
| int32 | Get the number of minutes this user has played | ||
| float | Get the current reward rate | ||
| bool | HasTimeLimit () |
Check if the user has a play time limit |