Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE3:OnlinePlaylistManager (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
(Redirected from UE3:Playlist (UDK))
Jump to: navigation, search
UDK Object >> OnlinePlaylistManager
Package: 
Engine

This class holds the set of playlists that the game exposes, handles downloading updates to the playlists via MCP/TitleFiles, and creates the game settings objects that make up a playlist

Properties[edit]

DatastoresToRefresh[edit]

Type: array<name>

Modifiers: config

The set of UIDataStore_GameResource objects to refresh once the download has completed

DownloadCount[edit]

Type: int

Used to know when we should finalize the objects

PlaylistFileNames[edit]

Type: array<string>

The file names to request when downloading a playlist from MCP/TMS/etc

Playlists[edit]

Type: array<Playlist>

Modifiers: config

This is the complete set of playlists available to choose from

SuccessfulCount[edit]

Type: int

Incremented when successful to determine whether to update at all

VersionNumber[edit]

Type: int

Modifiers: config

The version number of the playlist that was downloaded

Structs[edit]

ConfiguredGameSetting[edit]

Modifiers: native

Contains a game settings class name to load and instance using the specified URL to override defaults

int GameSettingId 
The unique (within the playlist) id for this game setting
string GameSettingsClassName 
The name of the class to load and instance
string Url 
The URL to use to replace settings with (see UpdateFromURL())
OnlineGameSettings GameSettings 
Holds the object that was created for this entry in a playlist

Playlist[edit]

Modifiers: native

A playlist contains 1 or more game configurations that players can choose between

array<ConfiguredGameSetting> ConfiguredGames 
Holds the list of game configurations that are part of this playlist
int PlaylistId 
The unique id for this playlist
string LocalizationString 
The string to use to lookup the display name for this playlist
array<int> ContentIds 
The set of content/maps (or DLC bundles) that must be present in order to play on this playlist
int TeamSize 
The number of players per team if different from the defaults
int TeamCount 
The number of teams per match if different from the defaults
string Name 
The string to use in the UI for this playlist
bool bIsArbitrated 
Whether this playlist is arbitrated or not

Delegates[edit]

OnReadPlaylistComplete[edit]

delegate OnReadPlaylistComplete ()

Delegate fired when the playlist has been downloaded and processed

Functions[edit]

Native functions[edit]

DetermineFilesToDownload[edit]

native function DetermineFilesToDownload ()

Uses the current loc setting and game ini name to build the download list

FinalizePlaylistObjects[edit]

native function FinalizePlaylistObjects ()

Uses the configuration data to create the requested objects and then applies any specific game settings changes to them

Other instance functions[edit]

DownloadPlaylist[edit]

function DownloadPlaylist ()

Reads the playlist from either MCP or from some form of title storage

GetContentIdsFromPlaylist[edit]

function GetContentIdsFromPlaylist (int PlaylistId, out array<intContentIds)

Finds the specified playlist and return the content ids in the out var

Parameters:

  • PlaylistId - the playlist being searched for
  • ContentIds - the list to set the content ids in

GetGameSettings[edit]

function OnlineGameSettings GetGameSettings (int PlaylistId, int GameSettingsId)

Finds the game settings object associated with this playlist and game settings id

Parameters:

  • PlaylistId - the playlist we are searching
  • GameSettingsId - the game settings id being searched for

Returns:

the game settings specified or None if not found

GetTeamInfoFromPlaylist[edit]

function GetTeamInfoFromPlaylist (int PlaylistId, out int TeamSize, out int TeamCount)

Finds the team information for the specified playlist and returns it in the out vars

Parameters:

  • PlaylistId - the playlist being searched for
  • TeamSize - out var getting the number of players per team
  • TeamCount - out var getting the number of teams per match

HasAnyGameSettings[edit]

function bool HasAnyGameSettings (int PlaylistId)

Determine if any game settings exist for the given playlistid

Parameters:

  • PlaylistId - playlist to check for game settings

Returns:

TRUE if game settings exist for the given id

OnReadTitleFileComplete[edit]

function OnReadTitleFileComplete (bool bWasSuccessful, string FileName)

Notifies us when the download of the playlist file is complete

Parameters:

  • bWasSuccessful - true if the download completed ok, false otherwise
  • FileName - the file that was downloaded (or failed to)

Reset[edit]

function Reset ()

Allows the playlists to be re-requested from the server