Loading...
Searching...
No Matches
FOnlineTimeAccelByte Class Reference
Inheritance diagram for FOnlineTimeAccelByte:

Public Member Functions

virtual bool QueryServerUtcTime () override
virtual FString GetLastServerUtcTime () override
virtual FString GetCurrentServerUtcTime ()

Static Public Member Functions

static bool GetFromSubsystem (const IOnlineSubsystem *Subsystem, TSharedPtr< FOnlineTimeAccelByte, ESPMode::ThreadSafe > &OutInterfaceInstance)
static bool GetFromWorld (const UWorld *World, TSharedPtr< FOnlineTimeAccelByte, ESPMode::ThreadSafe > &OutInterfaceInstance)

Protected Attributes

FOnlineSubsystemAccelByteWPtr AccelByteSubsystem = nullptr

Member Function Documentation

◆ GetCurrentServerUtcTime()

FString FOnlineTimeAccelByte::GetCurrentServerUtcTime ( )
virtual

Get server current timestamp back calculated from cached last server time query

Returns
string representation of time (yyyy.MM.dd-HH.mm.ss)

◆ GetFromSubsystem()

bool FOnlineTimeAccelByte::GetFromSubsystem ( const IOnlineSubsystem * Subsystem,
TSharedPtr< FOnlineTimeAccelByte, ESPMode::ThreadSafe > & OutInterfaceInstance )
static

Convenience method to get an instance of this interface from the subsystem passed in.

Parameters
SubsystemSubsystem instance that we wish to get this interface from
OutInterfaceInstanceInstance of the interface that we got from the subsystem, or nullptr if not found
Returns
boolean that is true if we could get an instance of the interface, false otherwise

◆ GetFromWorld()

bool FOnlineTimeAccelByte::GetFromWorld ( const UWorld * World,
TSharedPtr< FOnlineTimeAccelByte, ESPMode::ThreadSafe > & OutInterfaceInstance )
static

Convenience method to get an instance of this interface from the subsystem associated with the world passed in.

Parameters
WorldWorld instance that we wish to get the interface from
OutInterfaceInstanceInstance of the interface that we got from the subsystem, or nullptr if not found
Returns
boolean that is true if we could get an instance of the interface, false otherwise

Member Data Documentation

◆ AccelByteSubsystem

FOnlineSubsystemAccelByteWPtr FOnlineTimeAccelByte::AccelByteSubsystem = nullptr
protected

Instance of the subsystem that created this interface