Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.OnlineContentInterface

Modifiers
dependson ( OnlineSubsystem )

This interface provides accessors to the platform specific content system (ie downloadable content, etc)

Engine.OnlineContentInterface

Delegates Summary
delegate OnContentChange ()
delegate OnQueryAvailableDownloadsComplete (bool bWasSuccessful)
delegate OnReadContentComplete (bool bWasSuccessful)
delegate OnReadSaveGameDataComplete (bool bWasSuccessful, yte LocalUserNum, nt DeviceId, tring FriendlyName, tring FileName, tring SaveFileName)
delegate OnWriteSaveGameDataComplete (bool bWasSuccessful, yte LocalUserNum, nt DeviceId, tring FriendlyName, tring FileName, tring SaveFileName)

Functions Summary
function AddContentChangeDelegate (delegate<OnContentChange> ContentDelegate, optional byte LocalUserNum = 255)
function AddQueryAvailableDownloadsComplete (byte LocalUserNum, elegate<OnQueryAvailableDownloadsComplete> QueryDownloadsDelegate)
function AddReadContentComplete (byte LocalUserNum, OnlineContentType ContentType, elegate<OnReadContentComplete> ReadContentCompleteDelegate)
function AddReadSaveGameDataComplete (byte LocalUserNum, elegate<OnReadSaveGameDataComplete> ReadSaveGameDataCompleteDelegate)
function AddWriteSaveGameDataComplete (byte LocalUserNum, elegate<OnWriteSaveGameDataComplete> WriteSaveGameDataCompleteDelegate)
function ClearContentChangeDelegate (delegate<OnContentChange> ContentDelegate, optional byte LocalUserNum = 255)
function ClearContentList (byte LocalUserNum, OnlineContentType ContentType)
function ClearQueryAvailableDownloadsComplete (byte LocalUserNum, elegate<OnQueryAvailableDownloadsComplete> QueryDownloadsDelegate)
function ClearReadContentComplete (byte LocalUserNum, OnlineContentType ContentType, elegate<OnReadContentComplete> ReadContentCompleteDelegate)
function ClearReadSaveGameDataComplete (byte LocalUserNum, elegate<OnReadSaveGameDataComplete> ReadSaveGameDataCompleteDelegate)
functionbool ClearSaveGames (byte LocalUserNum)
function ClearWriteSaveGameDataComplete (byte LocalUserNum, elegate<OnWriteSaveGameDataComplete> WriteSaveGameDataCompleteDelegate)
functionbool DeleteSaveGame (byte LocalUserNum, nt DeviceId, tring FriendlyName, tring FileName)
function GetAvailableDownloadCounts (byte LocalUserNum, ut int NewDownloads, ut int TotalDownloads)
functionEOnlineEnumerationReadState GetContentList (byte LocalUserNum, OnlineContentType ContentType, ut array<OnlineContent> ContentList)
functionbool GetSaveGameData (byte LocalUserNum, nt DeviceId, tring FriendlyName, tring FileName, tring SaveFileName, ut array<byte> SaveGameData)
functionbool QueryAvailableDownloads (byte LocalUserNum, ptional int CategoryMask = -1)
functionbool ReadContentList (byte LocalUserNum, OnlineContentType ContentType, ptional int DeviceId = -1)
functionbool ReadSaveGameData (byte LocalUserNum, nt DeviceId, tring FriendlyName, tring FileName, tring SaveFileName)
functionbool WriteSaveGameData (byte LocalUserNum, nt DeviceId, tring FriendlyName, tring FileName, tring SaveFileName, onst out array<byte> SaveGameData)


Delegates Detail

OnContentChange Source code

delegate OnContentChange ( )
Delegate used in content change (add or deletion) notifications for any user

OnQueryAvailableDownloadsComplete Source code

delegate OnQueryAvailableDownloadsComplete ( bool bWasSuccessful )
Called once the download query completes
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnReadContentComplete Source code

delegate OnReadContentComplete ( bool bWasSuccessful )
Delegate used when the content read request has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnReadSaveGameDataComplete Source code

delegate OnReadSaveGameDataComplete ( bool bWasSuccessful,byte LocalUserNum,int DeviceId,string FriendlyName,string FileName,string SaveFileName )
Delegate used when the content read request has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error
@param LocalUserNum the user that was initiating the data read
@param DeviceId the device that the read was on
@param FriendlyName the friendly name of the save game that was returned by enumeration
@param FileName the file to read from inside of the content package
@param SaveFileName the file name of the save game inside the content package

OnWriteSaveGameDataComplete Source code

delegate OnWriteSaveGameDataComplete ( bool bWasSuccessful,byte LocalUserNum,int DeviceId,string FriendlyName,string FileName,string SaveFileName )
Delegate used when the content write request has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error
@param LocalUserNum the user that was initiating the data write
@param DeviceId the device to write the same game to
@param FriendlyName the friendly name of the save game
@param FileName the file to write to inside of the content package
@param SaveGameData the data to write to the save game file


Functions Detail

AddContentChangeDelegate Source code

function AddContentChangeDelegate ( delegate<OnContentChange> ContentDelegate, optional byte LocalUserNum = 255 )
Adds the delegate used to notify the gameplay code that (downloaded) content changed
@param Content Delegate the delegate to use for notifications
@param LocalUserNum whether to watch for changes on a specific slot or all slots

AddQueryAvailableDownloadsComplete Source code

function AddQueryAvailableDownloadsComplete ( byte LocalUserNum,delegate<OnQueryAvailableDownloadsComplete> QueryDownloadsDelegate )
Adds the delegate used to notify the gameplay code that the content download query has completed
@param LocalUserNum the user to check the content download availability for
@param ReadContentCompleteDelegate the delegate to use for notifications

AddReadContentComplete Source code

function AddReadContentComplete ( byte LocalUserNum,EOnlineContentType ContentType,delegate<OnReadContentComplete> ReadContentCompleteDelegate )
Adds the delegate used to notify the gameplay code that the content read request has completed
@param LocalUserNum The user to read the content list of
@param ContentType the type of content being read
@param ReadContentCompleteDelegate the delegate to use for notifications

AddReadSaveGameDataComplete Source code

function AddReadSaveGameDataComplete ( byte LocalUserNum,delegate<OnReadSaveGameDataComplete> ReadSaveGameDataCompleteDelegate )
Adds the delegate used to notify the gameplay code that a save game read request has completed
@param LocalUserNum The user that was reading a save game
@param ReadSaveGameDataCompleteDelegate the delegate to use for notifications

AddWriteSaveGameDataComplete Source code

function AddWriteSaveGameDataComplete ( byte LocalUserNum,delegate<OnWriteSaveGameDataComplete> WriteSaveGameDataCompleteDelegate )
Adds the delegate used to notify the gameplay code that a save game write request has completed
@param LocalUserNum The user that was writing a save game
@param WriteSaveGameDataCompleteDelegate the delegate to use for notifications

ClearContentChangeDelegate Source code

function ClearContentChangeDelegate ( delegate<OnContentChange> ContentDelegate, optional byte LocalUserNum = 255 )
Removes the delegate from the set of delegates that are notified
@param Content Delegate the delegate to use for notifications
@param LocalUserNum whether to watch for changes on a specific slot or all slots

ClearContentList Source code

function ClearContentList ( byte LocalUserNum,EOnlineContentType ContentType )
Starts an async task that frees any downloaded content resources for that player
@param LocalUserNum The user to clear the content list for
@param ContentType the type of content being read

ClearQueryAvailableDownloadsComplete Source code

function ClearQueryAvailableDownloadsComplete ( byte LocalUserNum,delegate<OnQueryAvailableDownloadsComplete> QueryDownloadsDelegate )
Clears the delegate used to notify the gameplay code that the content download query has completed
@param LocalUserNum the user to check the content download availability for
@param ReadContentCompleteDelegate the delegate to use for notifications

ClearReadContentComplete Source code

function ClearReadContentComplete ( byte LocalUserNum,EOnlineContentType ContentType,delegate<OnReadContentComplete> ReadContentCompleteDelegate )
Clears the delegate used to notify the gameplay code that the content read request has completed
@param LocalUserNum The user to read the content list of
@param ContentType the type of content being read
@param ReadContentCompleteDelegate the delegate to use for notifications

ClearReadSaveGameDataComplete Source code

function ClearReadSaveGameDataComplete ( byte LocalUserNum,delegate<OnReadSaveGameDataComplete> ReadSaveGameDataCompleteDelegate )
Clears the delegate used to notify the gameplay code that a save game read request has completed
@param LocalUserNum The user that was reading a save game
@param ReadSaveGameDataCompleteDelegate the delegate to use for notifications

ClearSaveGames Source code

function bool ClearSaveGames ( byte LocalUserNum )
Clears any cached save games
@param LocalUserNum the user that is deleting data
@return true if the clear succeeded, false otherwise

ClearWriteSaveGameDataComplete Source code

function ClearWriteSaveGameDataComplete ( byte LocalUserNum,delegate<OnWriteSaveGameDataComplete> WriteSaveGameDataCompleteDelegate )
Clears the delegate used to notify the gameplay code that a save game write request has completed
@param LocalUserNum The user that was writing a save game
@param WriteSaveGameDataCompleteDelegate the delegate to use for notifications

DeleteSaveGame Source code

function bool DeleteSaveGame ( byte LocalUserNum,int DeviceId,string FriendlyName,string FileName )
Deletes a player's save game data
@param LocalUserNum the user that is deleting data
@param DeviceId the device to delete the same game from
@param FriendlyName the friendly name of the save game that was returned by enumeration
@param FileName the file name of the content package to delete
@return true if the delete succeeded, false otherwise

GetAvailableDownloadCounts Source code

function GetAvailableDownloadCounts ( byte LocalUserNum,out int NewDownloads,out int TotalDownloads )
Returns the number of new and total downloads available for the user
@param LocalUserNum the user to check the content download availability for
@param NewDownloads out value of the number of new downloads available
@param TotalDownloads out value of the number of total downloads available

GetContentList Source code

function EOnlineEnumerationReadState GetContentList ( byte LocalUserNum,EOnlineContentType ContentType,out array<OnlineContent> ContentList )
Retrieve the list of content the given user has downloaded or otherwise retrieved to the local console.
@param LocalUserNum The user to read the content list of
@param ContentType the type of content being read
@param ContentList The out array that receives the list of all content
@return OERS_Done if the read has completed, otherwise one of the other states

GetSaveGameData Source code

function bool GetSaveGameData ( byte LocalUserNum,int DeviceId,string FriendlyName,string FileName,string SaveFileName,out array<byte> SaveGameData )
Copies a player's save game data from the cached async read data
@param LocalUserNum the user that is initiating the data read (also used in validating ownership of the data)
@param DeviceId the device to read the same game from
@param FriendlyName the friendly name of the save game that was returned by enumeration
@param FileName the file to read from inside of the content package
@param SaveFileName the file name of the save game inside the content package
@param SaveGameData the array that is filled with the save game data
@return true if the async read was started successfully, false otherwise

QueryAvailableDownloads Source code

function bool QueryAvailableDownloads ( byte LocalUserNum,optional int CategoryMask = -1 )
Asks the online system for the number of new and total content downloads
@param LocalUserNum the user to check the content download availability for
@param CategoryMask the bitmask to use to filter content by type
@return TRUE if the call succeeded, FALSE otherwise

ReadContentList Source code

function bool ReadContentList ( byte LocalUserNum,EOnlineContentType ContentType,optional int DeviceId = -1 )
Starts an async task that retrieves the list of downloaded content for the player.
@param LocalUserNum The user to read the content list of
@param ContentType the type of content being read
@param DeviceId optional value to restrict the enumeration to a particular device
@return true if the read request was issued successfully, false otherwise

ReadSaveGameData Source code

function bool ReadSaveGameData ( byte LocalUserNum,int DeviceId,string FriendlyName,string FileName,string SaveFileName )
Reads a player's save game data from the specified content bundle
@param LocalUserNum the user that is initiating the data read (also used in validating ownership of the data)
@param DeviceId the device to read the same game from
@param FriendlyName the friendly name of the save game that was returned by enumeration
@param FileName the file to read from inside of the content package
@param SaveFileName the file name of the save game inside the content package
@return true if the async read was started successfully, false otherwise

WriteSaveGameData Source code

function bool WriteSaveGameData ( byte LocalUserNum,int DeviceId,string FriendlyName,string FileName,string SaveFileName,const out array<byte> SaveGameData )
Writes a player's save game data to the specified content bundle and file
@param LocalUserNum the user that is initiating the data write
@param DeviceId the device to write the same game to
@param FriendlyName the friendly name of the save game that was returned by enumeration
@param FileName the file name of the content package
@param SaveFileName the file name of the save game inside the content package
@param SaveGameData the data to write to the save game file
@return true if the async write was started successfully, false otherwise



Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: ti 22-3-2011 19:56:53.352 - Created with UnCodeX