Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem
Interface to provide play time limits
| Name | IOnlinePlayTimeLimit |
| Type | class |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlinePlayTimeLimit.h |
| Include Path | #include "Interfaces/OnlinePlayTimeLimit.h" |
Syntax
class IOnlinePlayTimeLimit : public IModularFeature
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IOnlinePlayTimeLimit() |
Destructor | Interfaces/OnlinePlayTimeLimit.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetPlayTimeMinutes
(
const FUniqueNetId& UserId |
Get the play time in minutes for the user | Interfaces/OnlinePlayTimeLimit.h | |
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 | Interfaces/OnlinePlayTimeLimit.h | |
FWarnUserPlayTime & GetWarnUserPlayTimeDelegate() |
Delegate called when a warning should be displayed to the user. See FWarnUserPlayTimeDelegate | Interfaces/OnlinePlayTimeLimit.h | |
bool HasTimeLimit
(
const FUniqueNetId& UserId |
Does the user have a play time limit? | Interfaces/OnlinePlayTimeLimit.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FName GetModularFeatureName() |
Get the name of the modular feature, to be used to get the implementations | Interfaces/OnlinePlayTimeLimit.h |