Navigation
Unreal Engine C++ API Reference > Plugins > OnlineSubsystem > Interfaces
Inheritance Hierarchy
- IModularFeature
- IOnlinePlayTimeLimit
- FPlayTimeLimitImpl
References
Module | OnlineSubsystem |
Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlinePlayTimeLimit.h |
Include | #include "Interfaces/OnlinePlayTimeLimit.h" |
Syntax
class IOnlinePlayTimeLimit : public IModularFeature
Remarks
Interface to provide play time limits
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Destructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FName | Get the name of the modular feature, to be used to get the implementations | |
![]() |
int32 | GetPlayTimeMinutes
(
const FUniqueNetId& UserId |
Get the play time in minutes for the user |
![]() |
float | GetRewardRate
(
const FUniqueNetId& UserId |
Get the reward amount multiplier for the user Expected to start at 1.0 (full rewards), and is reduced based on their play time |
![]() |
FWarnUserPlayTime & | Delegate called when a warning should be displayed to the user. See FWarnUserPlayTimeDelegate | |
![]() |
bool | HasTimeLimit
(
const FUniqueNetId& UserId |
Does the user have a play time limit? |