My program doesn't have bugs. It just develops random features.

UE3:UIDataProvider_PlayerAchievements (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 05:50, 17 January 2010 by Wormbo (Talk | contribs) (1 revision: class descriptions for UDK January update (part 6))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UDK Object >> UIRoot >> UIDataProvider >> UIDataProvider_OnlinePlayerDataBase >> UIDataProvider_PlayerAchievements
Package: 
Engine
Implemented interfaces
UIListElementCellProvider

This class is responsible for providing access to information about the achievements available to the player

Copyright 1998-2009 Epic Games, Inc. All Rights Reserved

Properties[edit]

Achievements[edit]

Type: array<OnlineSubsystem.AchievementDetails>

Modifiers: transient


Functions[edit]

Native functions[edit]

GetMaxTotalGamerScore[edit]

native final function int GetMaxTotalGamerScore () const

Returns the number of gamer points that can be acquired in this game across all achievements

Returns:

The maximum number of gamer points allocated for each game.

GetTotalGamerScore[edit]

native final function int GetTotalGamerScore () const

Returns the number of gamer points this profile has accumulated across all achievements

Returns:

a number between 0 and the maximum number of gamer points allocated for each game (currently 1000), representing the total gamer points earned from all achievements for this profile.

Events[edit]

OnRegister[edit]

event OnRegister (LocalPlayer InPlayer)

Overrides: UIDataProvider_OnlinePlayerDataBase.OnRegister

Binds the player to this provider. Starts the async friends list gathering

Parameters:

  • InPlayer - the player that we are retrieving friends for

OnUnregister[edit]

event OnUnregister ()

Overrides: UIDataProvider_OnlinePlayerDataBase.OnUnregister

Clears our delegate for getting login change notifications

Other instance functions[edit]

GetAchievementDetails[edit]

function GetAchievementDetails (const int AchievementId, out OnlineSubsystem.AchievementDetails OutAchievementDetails)

Gets achievement details based on achievement id

Parameters:

  • AchievementId - EGearAchievement for which to find details
  • OutAchievementDetails - AchievementDetails struct to be populated

GetAchievementIconPathName[edit]

function string GetAchievementIconPathName (int AchievementId, optional bool bReturnLockedIcon)

Wrapper for retrieving the path name of an achievement's icon.

OnLoginChange[edit]

function OnLoginChange (byte LocalUserNum)

Handlers for the player's login changed delegate. Refreshes the list of achievements.

Parameters:

  • LocalUserNum - the player that logged in/out

OnPlayerAchievementsChanged[edit]

function OnPlayerAchievementsChanged (int TitleId)

Called when the async achievements read has completed

Parameters:

  • TitleId - the title id that the read was for (0 means current title)

OnPlayerAchievementUnlocked[edit]

function OnPlayerAchievementUnlocked (bool bWasSuccessful)

Handler for online service's callback for the player unlocking an achievement.

PopulateAchievementIcons[edit]

function PopulateAchievementIcons ()

Loads the achievement icons from the .ini and applies them to the list of achievements.

UpdateAchievements[edit]

function UpdateAchievements ()

Queries the online service for the player's list of achievements.