| IModularFeature
|
Module |
|
Header |
/Engine/Plugins/Online/OnlineFramework/Source/PlayTimeLimit/Public/PlayTimeLimitImpl.h |
Include |
#include "PlayTimeLimitImpl.h" |
class FPlayTimeLimitImpl : public IOnlinePlayTimeLimit
Implementation of IOnlinePlayTimeLimit
Name | Description | ||
---|---|---|---|
|
ConfigRates |
Configuration to control notification rate at different levels of play time |
|
|
double |
LastTickLogicTime |
Last time we performed tick logic |
|
OnRequestCreateUser |
||
|
TickHandle |
Delegate for callbacks to Tick |
|
|
Users |
List of users we are monitoring |
|
|
WarnUserPlayTimeDelegate |
Delegate used to display a warning to the user about their play time |
Name | Description | |
---|---|---|
|
FPlayTimeLimitImpl() |
Default constructor |
Name | Description | |
---|---|---|
|
~FPlayTimeLimitImpl() |
Destructor |
Name | Description | ||
---|---|---|---|
|
DumpState() |
Dump state to log |
|
|
FPlayTimeLim... |
Get() |
Get the singleton |
|
const FOnlin... |
GetConfigEntry ( |
Get the config entry that corresponds to the number of minutes played |
|
Initialize() |
Initialize |
|
|
MockUser ( |
Override a user's play time For testing the system without needing to potentially wait hours - waiting to accumulate time and waiting for the time to reset |
|
|
NotifyNow() |
Cheat function to trigger the notification to players of their play time immediately |
|
|
RegisterUser ( |
Register a user to monitor their play time |
|
|
Shutdown() |
Shutdown |
|
|
Tick ( |
Tick - update users and execute warn time delegates |
|
|
UnregisterUser ( |
Unregister a user |
|
|
UpdateNextNotificationTime ( |
Update the next notification time for a user based on their current play time |
Name | Description | ||
---|---|---|---|
|
GetPlayTimeMinutes ( |
Get the play time in minutes for the user |
|
|
float |
GetRewardRate ( |
Get the reward amount multiplier for the user Expected to start at 1.0 (full rewards), and is reduced based on their play time |
|
FWarnUserPla... |
GetWarnUserPlayTimeDelegate() |
Delegate called when a warning should be displayed to the user. See FWarnUserPlayTimeDelegate |
|
HasTimeLimit ( |
Begin IOnlinePlayTimeLimit. |
Name |
Description |
---|---|
OnRequestCreateUserDelegate |