IOnlinePlayTimeLimit

Interface to provide play time limits

Windows
MacOS
Linux

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

Name Description

Public function Virtual

~IOnlinePlayTimeLimit()

Destructor

Functions

Name Description

Public function Static

FName

 

GetModularFeatureName()

Get the name of the modular feature, to be used to get the implementations

Public function

int32

 

GetPlayTimeMinutes

(
    const FUniqueNetId& UserId
)

Get the play time in minutes for the user

Public function

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

Public function

FWarnUserPla...

 

GetWarnUserPlayTimeDelegate()

Delegate called when a warning should be displayed to the user. See FWarnUserPlayTimeDelegate

Public function

bool

 

HasTimeLimit

(
    const FUniqueNetId& UserId
)

Does the user have a play time limit?

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss