Class EOSLeaderboardManager
- Namespace
- PlayEveryWare.EpicOnlineServices.Samples
Class EOSLeaderboardManager is a simplified wrapper for EOS Leaderboard Interface.
public class EOSLeaderboardManager : IEOSSubManager
- Inheritance
-
EOSLeaderboardManager
Constructors
EOSLeaderboardManager()
public EOSLeaderboardManager()
Methods
CopyUserScore(ProductUserId, out LeaderboardRecord?)
Retrieves the leaderboard record for the specified user id.
public Result CopyUserScore(ProductUserId userId, out LeaderboardRecord? record)
Parameters
userIdProductUserIdUserId to query.
recordLeaderboardRecord?LeaderboardRecord output from the query.
Returns
- Result
Result of the copying the record for the user id.
GetCachedDefinitionFromId(string)
Get cached Leaderboard Defintion given a LeaderboardId.
public Definition? GetCachedDefinitionFromId(string leaderboardId)
Parameters
leaderboardIdstringSpecified LeaderboardID
Returns
- Definition?
Leaderboard
Defintion
GetCachedDefinitionIds()
Get list of cached Leaderboard Definitions
public List<string> GetCachedDefinitionIds()
Returns
GetCachedLeaderboardDefinitions(out Dictionary<string, Definition>)
Returns cached Leaderboard Dictionary where LeaderboardId is the key and Definition is the value.
public bool GetCachedLeaderboardDefinitions(out Dictionary<string, Definition> LeaderboardDefinitions)
Parameters
LeaderboardDefinitionsDictionary<string, Definition>Out parameter returns Dictionary where LeaderboardId is the key and
LeaderboardDefinitionsis the value.
Returns
- bool
True if
LeaderboardDefinitionshas changed since last call.
GetCachedLeaderboardRecords(out List<LeaderboardRecord>)
Returns cached LeaderboardRecord List.
public bool GetCachedLeaderboardRecords(out List<LeaderboardRecord> LeaderboardsRecords)
Parameters
LeaderboardsRecordsList<LeaderboardRecord>Out parameter returns List of
LeaderboardRecord.
Returns
- bool
True if
LeaderboardRecordshas changed since last call.
GetCachedLeaderboardUserScores(out Dictionary<string, List<LeaderboardUserScore>>)
Returns cached LeaderboardUserScore Dictionary where LeaderboardId is the key.
public bool GetCachedLeaderboardUserScores(out Dictionary<string, List<LeaderboardUserScore>> LeaderboardUserScores)
Parameters
LeaderboardUserScoresDictionary<string, List<LeaderboardUserScore>>Out parameter returns Dictionary where LeaderboardId is the key and
LeaderboardUserScoreis the value.
Returns
- bool
True if
LeaderboardUserScoreshas changed since last call.
GetCachedUserScoresFromLeaderboardId(string)
Get cached Leaderboard UserScores given a LeaderboardId.
public List<LeaderboardUserScore> GetCachedUserScoresFromLeaderboardId(string leaderboardId)
Parameters
leaderboardIdstringLeaderboard ID
Returns
- List<LeaderboardUserScore>
Leaderboard
UserScores
OnLoggedIn()
User Logged In actions
public void OnLoggedIn()
OnLoggedOut()
User Logged Out actions
public void OnLoggedOut()
QueryDefinitions(OnLeaderboardCallback)
(async) Initiate query for Leaderboard Definitions.
public void QueryDefinitions(EOSLeaderboardManager.OnLeaderboardCallback QueryDefinitionsCompleted)
Parameters
QueryDefinitionsCompletedEOSLeaderboardManager.OnLeaderboardCallback
QueryRanks(string, OnLeaderboardCallback)
(async) Initiate query for Leaderboard Ranks given a Leaderboard ID.
public void QueryRanks(string leaderboardId, EOSLeaderboardManager.OnLeaderboardCallback QueryRanksCompleted)
Parameters
leaderboardIdstringLeaderboard ID
QueryRanksCompletedEOSLeaderboardManager.OnLeaderboardCallback
QueryUserScores(List<string>, List<ProductUserId>, OnLeaderboardCallback)
(async) Initiate query for Leaderboard UserScores given a list of LeaderboardIds and list of Users.
public void QueryUserScores(List<string> leaderboardIds, List<ProductUserId> userIds, EOSLeaderboardManager.OnLeaderboardCallback QueryUserScoresCompleted)
Parameters
leaderboardIdsList<string>List of LeaderboardIds to query.
userIdsList<ProductUserId>List of UserId to query.
QueryUserScoresCompletedEOSLeaderboardManager.OnLeaderboardCallback