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?

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback