IOnlineLeaderboards

Interface definition for the online services leaderboard services

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineLeaderboardInterface.h

Include

#include "Interfaces/OnlineLeaderboardInterface.h"

Syntax

class IOnlineLeaderboards

Remarks

Interface definition for the online services leaderboard services

Variables

Name Description

Public variable

FOnLeaderboardF...

 

OnLeaderboardFlushCompleteDelegates

Delegate called when the stats flush operation has completed

Public variable

FOnLeaderboardR...

 

OnLeaderboardReadCompleteDelegates

Notifies the interested party that the last stats read has completed

Constructors

Name Description

Protected function

IOnlineLeaderboards()

Destructors

Name Description

Public function Virtual

~IOnlineLeaderboards()

Functions

Name Description

Public function Virtual

FDelegateHan...

 

AddOnLeaderboardFlushCompleteDelegate_Handle

(
    const FOnLeaderboardFlushCompleteDe...
)

Public function Virtual

FDelegateHan...

 

AddOnLeaderboardReadCompleteDelegate_Handle

(
    const FOnLeaderboardReadCompleteDel...
)

Public function Virtual

void

 

ClearOnLeaderboardFlushCompleteDelegate_Handle

(
    FDelegateHandle& Handle
)

Public function Virtual

void

 

ClearOnLeaderboardFlushCompleteDelegates

(
    void* Object
)

Public function Virtual

void

 

ClearOnLeaderboardReadCompleteDelegate_Handle

(
    FDelegateHandle& Handle
)

Public function Virtual

void

 

ClearOnLeaderboardReadCompleteDelegates

(
    void* Object
)

Public function

bool

 

FlushLeaderboards

(
    const FName& SessionName
)

Commits any changes in the online stats cache to the permanent storage

Public function

void

 

FreeStats

(
    FOnlineLeaderboardRead& ReadObject
)

Cleans up any platform specific allocated data contained in the stats data

Public function

bool

 

ReadLeaderboards

(
    const TArray< FUniqueNetIdRef >& P...,
    FOnlineLeaderboardReadRef& ReadObj...
)

Reads a set of stats for the specified list of players

Public function

bool

 

ReadLeaderboardsAroundRank

(
    int32 Rank,
    uint32 Range,
    FOnlineLeaderboardReadRef& ReadObj...
)

Reads stats for a given rank in the leaderboard, as well as a range of stats above and below that rank.

Public function

bool

 

ReadLeaderboardsAroundUser

(
    FUniqueNetIdRef Player,
    uint32 Range,
    FOnlineLeaderboardReadRef& ReadObj...
)

Reads stats for a given player in the leaderboard, as well as a range of stats above and below that user.

Public function

bool

 

ReadLeaderboardsForFriends

(
    int32 LocalUserNum,
    FOnlineLeaderboardReadRef& ReadObj...
)

Reads a player's stats and all of that player's friends stats for the specified set of stat views.

Public function Virtual

void

 

TriggerOnLeaderboardFlushCompleteDelegates

(
    const FName& Param1,
    bool Param2
)

Public function Virtual

void

 

TriggerOnLeaderboardReadCompleteDelegates

(
    bool Param1
)

Public function

bool

 

WriteLeaderboards

(
    const FName& SessionName,
    const FUniqueNetId& Player,
    FOnlineLeaderboardWrite& WriteObje...
)

Writes out the stats contained within the stats write object to the online subsystem's cache of stats data.

Public function

bool

 

WriteOnlinePlayerRatings

(
    const FName& SessionName,
    int32 LeaderboardId,
    const TArray< FOnlinePlayerScore > ...
)

Writes the score data for the match, used for rankings/ratings

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