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

Engine.OnlineGameInterface

Modifiers
dependson ( OnlineSubsystem , OnlineGameSearch )

This interface deals with the online games. It creates, destroys, performs searches for online games. This interface is overloaded to provide custom matchmaking services

Engine.OnlineGameInterface

Delegates Summary
delegate OnArbitrationRegistrationComplete (bool bWasSuccessful)
delegate OnCancelFindOnlineGamesComplete (bool bWasSuccessful)
delegate OnCreateOnlineGameComplete (bool bWasSuccessful)
delegate OnDestroyOnlineGameComplete (bool bWasSuccessful)
delegate OnEndOnlineGameComplete (bool bWasSuccessful)
delegate OnFindOnlineGamesComplete (bool bWasSuccessful)
delegate OnGameInviteAccepted (OnlineGameSettings GameInviteSettings)
delegate OnJoinOnlineGameComplete (bool bWasSuccessful)
delegate OnRegisterPlayerComplete (bool bWasSuccessful)
delegate OnStartOnlineGameComplete (bool bWasSuccessful)
delegate OnUnregisterPlayerComplete (bool bWasSuccessful)

Functions Summary
functionbool AcceptGameInvite (byte LocalUserNum)
function AddArbitrationRegistrationCompleteDelegate (delegate<OnArbitrationRegistrationComplete> ArbitrationRegistrationCompleteDelegate)
function AddCancelFindOnlineGamesCompleteDelegate (delegate<OnCancelFindOnlineGamesComplete> CancelFindOnlineGamesCompleteDelegate)
function AddCreateOnlineGameCompleteDelegate (delegate<OnCreateOnlineGameComplete> CreateOnlineGameCompleteDelegate)
function AddDestroyOnlineGameCompleteDelegate (delegate<OnDestroyOnlineGameComplete> DestroyOnlineGameCompleteDelegate)
function AddEndOnlineGameCompleteDelegate (delegate<OnEndOnlineGameComplete> EndOnlineGameCompleteDelegate)
function AddFindOnlineGamesCompleteDelegate (delegate<OnFindOnlineGamesComplete> FindOnlineGamesCompleteDelegate)
function AddGameInviteAcceptedDelegate (byte LocalUserNum, elegate<OnGameInviteAccepted> GameInviteAcceptedDelegate)
function AddJoinOnlineGameCompleteDelegate (delegate<OnJoinOnlineGameComplete> JoinOnlineGameCompleteDelegate)
function AddRegisterPlayerCompleteDelegate (delegate<OnRegisterPlayerComplete> RegisterPlayerCompleteDelegate)
function AddStartOnlineGameCompleteDelegate (delegate<OnStartOnlineGameComplete> StartOnlineGameCompleteDelegate)
function AddUnregisterPlayerCompleteDelegate (delegate<OnUnregisterPlayerComplete> UnregisterPlayerCompleteDelegate)
functionbool CancelFindOnlineGames ()
function ClearArbitrationRegistrationCompleteDelegate (delegate<OnArbitrationRegistrationComplete> ArbitrationRegistrationCompleteDelegate)
function ClearCancelFindOnlineGamesCompleteDelegate (delegate<OnCancelFindOnlineGamesComplete> CancelFindOnlineGamesCompleteDelegate)
function ClearCreateOnlineGameCompleteDelegate (delegate<OnCreateOnlineGameComplete> CreateOnlineGameCompleteDelegate)
function ClearDestroyOnlineGameCompleteDelegate (delegate<OnDestroyOnlineGameComplete> DestroyOnlineGameCompleteDelegate)
function ClearEndOnlineGameCompleteDelegate (delegate<OnEndOnlineGameComplete> EndOnlineGameCompleteDelegate)
function ClearFindOnlineGamesCompleteDelegate (delegate<OnFindOnlineGamesComplete> FindOnlineGamesCompleteDelegate)
function ClearGameInviteAcceptedDelegate (byte LocalUserNum, elegate<OnGameInviteAccepted> GameInviteAcceptedDelegate)
function ClearJoinOnlineGameCompleteDelegate (delegate<OnJoinOnlineGameComplete> JoinOnlineGameCompleteDelegate)
function ClearRegisterPlayerCompleteDelegate (delegate<OnRegisterPlayerComplete> RegisterPlayerCompleteDelegate)
function ClearStartOnlineGameCompleteDelegate (delegate<OnStartOnlineGameComplete> StartOnlineGameCompleteDelegate)
function ClearUnregisterPlayerCompleteDelegate (delegate<OnUnregisterPlayerComplete> UnregisterPlayerCompleteDelegate)
functionbool CreateOnlineGame (byte HostingPlayerNum, nlineGameSettings NewGameSettings)
functionbool DestroyOnlineGame ()
functionbool EndOnlineGame ()
functionbool FindOnlineGames (byte SearchingPlayerNum, nlineGameSearch SearchSettings)
functionbool FreeSearchResults (optional OnlineGameSearch Search)
functionarray<OnlineArbitrationRegistrant> GetArbitratedPlayers ()
functionOnlineGameSearch GetGameSearch ()
functionOnlineGameSettings GetGameSettings ()
functionEOnlineGameState GetOnlineGameState ()
functionbool GetResolvedConnectString (out string ConnectInfo)
functionbool JoinOnlineGame (byte PlayerNum, onst out OnlineGameSearchResult DesiredGame)
functionbool QueryAuxServerInfo (byte SearchingPlayerNum, nlineGameSearch SearchSettings, onst out OnlineGameSearchResult Server)
functionbool RecalculateSkillRating (const out array<UniqueNetId> Players)
functionbool RegisterForArbitration ()
functionbool RegisterPlayer (UniqueNetId PlayerId, ool bWasInvited)
functionbool StartOnlineGame ()
functionbool UnregisterPlayer (UniqueNetId PlayerId)
functionbool UpdateOnlineGame (OnlineGameSettings UpdatedGameSettings)


Delegates Detail

OnArbitrationRegistrationComplete Source code

delegate OnArbitrationRegistrationComplete ( bool bWasSuccessful )
Delegate fired when the online game has completed registration for arbitration
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnCancelFindOnlineGamesComplete Source code

delegate OnCancelFindOnlineGamesComplete ( bool bWasSuccessful )
Delegate fired when the cancellation of a search for an online game has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnCreateOnlineGameComplete Source code

delegate OnCreateOnlineGameComplete ( bool bWasSuccessful )
Delegate fired when a create request has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnDestroyOnlineGameComplete Source code

delegate OnDestroyOnlineGameComplete ( bool bWasSuccessful )
Delegate fired when a destroying an online game has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnEndOnlineGameComplete Source code

delegate OnEndOnlineGameComplete ( bool bWasSuccessful )
Delegate fired when the online game has transitioned to the ending game state
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnFindOnlineGamesComplete Source code

delegate OnFindOnlineGamesComplete ( bool bWasSuccessful )
Delegate fired when the search for an online game has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnGameInviteAccepted Source code

delegate OnGameInviteAccepted ( OnlineGameSettings GameInviteSettings )
Called when a user accepts a game invitation. Allows the gameplay code a chance to clean up any existing state before accepting the invite. The invite must be accepted by calling AcceptGameInvite() on the OnlineGameInterface after clean up has completed
@param GameInviteSettings all of the game information for the game they've accepted the invite to

OnJoinOnlineGameComplete Source code

delegate OnJoinOnlineGameComplete ( bool bWasSuccessful )
Delegate fired when the joing process for an online game has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnRegisterPlayerComplete Source code

delegate OnRegisterPlayerComplete ( bool bWasSuccessful )
Delegate fired when the registration process has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnStartOnlineGameComplete Source code

delegate OnStartOnlineGameComplete ( bool bWasSuccessful )
Delegate fired when the online game has transitioned to the started state
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnUnregisterPlayerComplete Source code

delegate OnUnregisterPlayerComplete ( bool bWasSuccessful )
Delegate fired when the unregistration process has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error


Functions Detail

AcceptGameInvite Source code

function bool AcceptGameInvite ( byte LocalUserNum )
Tells the online subsystem to accept the game invite that is currently pending
@param LocalUserNum the local user accepting the invite

AddArbitrationRegistrationCompleteDelegate Source code

function AddArbitrationRegistrationCompleteDelegate ( delegate<OnArbitrationRegistrationComplete> ArbitrationRegistrationCompleteDelegate )
Sets the notification callback to use when arbitration registration has completed
@param ArbitrationRegistrationCompleteDelegate the delegate to use for notifications

AddCancelFindOnlineGamesCompleteDelegate Source code

function AddCancelFindOnlineGamesCompleteDelegate ( delegate<OnCancelFindOnlineGamesComplete> CancelFindOnlineGamesCompleteDelegate )
Adds the delegate to the list to notify with
@param CancelFindOnlineGamesCompleteDelegate the delegate to use for notifications

AddCreateOnlineGameCompleteDelegate Source code

function AddCreateOnlineGameCompleteDelegate ( delegate<OnCreateOnlineGameComplete> CreateOnlineGameCompleteDelegate )
Sets the delegate used to notify the gameplay code that the online game they created has completed the creation process
@param CreateOnlineGameCompleteDelegate the delegate to use for notifications

AddDestroyOnlineGameCompleteDelegate Source code

function AddDestroyOnlineGameCompleteDelegate ( delegate<OnDestroyOnlineGameComplete> DestroyOnlineGameCompleteDelegate )
Sets the delegate used to notify the gameplay code that the online game they destroyed has completed the destruction process
@param DestroyOnlineGameCompleteDelegate the delegate to use for notifications

AddEndOnlineGameCompleteDelegate Source code

function AddEndOnlineGameCompleteDelegate ( delegate<OnEndOnlineGameComplete> EndOnlineGameCompleteDelegate )
Sets the delegate used to notify the gameplay code that the online game has transitioned to the ending state.
@param EndOnlineGameCompleteDelegate the delegate to use for notifications

AddFindOnlineGamesCompleteDelegate Source code

function AddFindOnlineGamesCompleteDelegate ( delegate<OnFindOnlineGamesComplete> FindOnlineGamesCompleteDelegate )
Adds the delegate used to notify the gameplay code that the search they kicked off has completed
@param FindOnlineGamesCompleteDelegate the delegate to use for notifications

AddGameInviteAcceptedDelegate Source code

function AddGameInviteAcceptedDelegate ( byte LocalUserNum,delegate<OnGameInviteAccepted> GameInviteAcceptedDelegate )
Sets the delegate used to notify the gameplay code when a game invite has been accepted
@param LocalUserNum the user to request notification for
@param GameInviteAcceptedDelegate the delegate to use for notifications

AddJoinOnlineGameCompleteDelegate Source code

function AddJoinOnlineGameCompleteDelegate ( delegate<OnJoinOnlineGameComplete> JoinOnlineGameCompleteDelegate )
Sets the delegate used to notify the gameplay code that the join request they kicked off has completed
@param JoinOnlineGameCompleteDelegate the delegate to use for notifications

AddRegisterPlayerCompleteDelegate Source code

function AddRegisterPlayerCompleteDelegate ( delegate<OnRegisterPlayerComplete> RegisterPlayerCompleteDelegate )
Sets the delegate used to notify the gameplay code that the player registration request they submitted has completed
@param RegisterPlayerCompleteDelegate the delegate to use for notifications

AddStartOnlineGameCompleteDelegate Source code

function AddStartOnlineGameCompleteDelegate ( delegate<OnStartOnlineGameComplete> StartOnlineGameCompleteDelegate )
Sets the delegate used to notify the gameplay code that the online game has transitioned to the started state.
@param StartOnlineGameCompleteDelegate the delegate to use for notifications

AddUnregisterPlayerCompleteDelegate Source code

function AddUnregisterPlayerCompleteDelegate ( delegate<OnUnregisterPlayerComplete> UnregisterPlayerCompleteDelegate )
Sets the delegate used to notify the gameplay code that the player unregistration request they submitted has completed
@param UnregisterPlayerCompleteDelegate the delegate to use for notifications

CancelFindOnlineGames Source code

function bool CancelFindOnlineGames ( )
Cancels the current search in progress if possible for that search type
@return true if successful searching for sessions, false otherwise

ClearArbitrationRegistrationCompleteDelegate Source code

function ClearArbitrationRegistrationCompleteDelegate ( delegate<OnArbitrationRegistrationComplete> ArbitrationRegistrationCompleteDelegate )
Removes the delegate from the list of notifications
@param ArbitrationRegistrationCompleteDelegate the delegate to use for notifications

ClearCancelFindOnlineGamesCompleteDelegate Source code

function ClearCancelFindOnlineGamesCompleteDelegate ( delegate<OnCancelFindOnlineGamesComplete> CancelFindOnlineGamesCompleteDelegate )
Removes the delegate from the notify list
@param CancelFindOnlineGamesCompleteDelegate the delegate to use for notifications

ClearCreateOnlineGameCompleteDelegate Source code

function ClearCreateOnlineGameCompleteDelegate ( delegate<OnCreateOnlineGameComplete> CreateOnlineGameCompleteDelegate )
Removes the delegate from the list of notifications
@param CreateOnlineGameCompleteDelegate the delegate to use for notifications

ClearDestroyOnlineGameCompleteDelegate Source code

function ClearDestroyOnlineGameCompleteDelegate ( delegate<OnDestroyOnlineGameComplete> DestroyOnlineGameCompleteDelegate )
Removes the delegate from the list of notifications
@param DestroyOnlineGameCompleteDelegate the delegate to use for notifications

ClearEndOnlineGameCompleteDelegate Source code

function ClearEndOnlineGameCompleteDelegate ( delegate<OnEndOnlineGameComplete> EndOnlineGameCompleteDelegate )
Removes the delegate from the list of notifications
@param EndOnlineGameCompleteDelegate the delegate to use for notifications

ClearFindOnlineGamesCompleteDelegate Source code

function ClearFindOnlineGamesCompleteDelegate ( delegate<OnFindOnlineGamesComplete> FindOnlineGamesCompleteDelegate )
Removes the delegate from the notify list
@param FindOnlineGamesCompleteDelegate the delegate to use for notifications

ClearGameInviteAcceptedDelegate Source code

function ClearGameInviteAcceptedDelegate ( byte LocalUserNum,delegate<OnGameInviteAccepted> GameInviteAcceptedDelegate )
Removes the delegate from the list of notifications
@param GameInviteAcceptedDelegate the delegate to use for notifications

ClearJoinOnlineGameCompleteDelegate Source code

function ClearJoinOnlineGameCompleteDelegate ( delegate<OnJoinOnlineGameComplete> JoinOnlineGameCompleteDelegate )
Removes the delegate from the list of notifications
@param JoinOnlineGameCompleteDelegate the delegate to use for notifications

ClearRegisterPlayerCompleteDelegate Source code

function ClearRegisterPlayerCompleteDelegate ( delegate<OnRegisterPlayerComplete> RegisterPlayerCompleteDelegate )
Removes the delegate from the list of notifications
@param RegisterPlayerCompleteDelegate the delegate to use for notifications

ClearStartOnlineGameCompleteDelegate Source code

function ClearStartOnlineGameCompleteDelegate ( delegate<OnStartOnlineGameComplete> StartOnlineGameCompleteDelegate )
Removes the delegate from the list of notifications
@param StartOnlineGameCompleteDelegate the delegate to use for notifications

ClearUnregisterPlayerCompleteDelegate Source code

function ClearUnregisterPlayerCompleteDelegate ( delegate<OnUnregisterPlayerComplete> UnregisterPlayerCompleteDelegate )
Removes the delegate from the list of notifications
@param UnregisterPlayerCompleteDelegate the delegate to use for notifications

CreateOnlineGame Source code

function bool CreateOnlineGame ( byte HostingPlayerNum,OnlineGameSettings NewGameSettings )
Creates an online game based upon the settings object specified. NOTE: online game registration is an async process and does not complete until the OnCreateOnlineGameComplete delegate is called.
@param HostingPlayerNum the index of the player hosting the match
@param NewGameSettings the settings to use for the new game session
@return true if successful creating the session, false otherwsie

DestroyOnlineGame Source code

function bool DestroyOnlineGame ( )
Destroys the current online game NOTE: online game de-registration is an async process and does not complete until the OnDestroyOnlineGameComplete delegate is called.
@return true if successful destroying the session, false otherwsie

EndOnlineGame Source code

function bool EndOnlineGame ( )
Marks an online game as having been ended
@return true if the call succeeds, false otherwise

FindOnlineGames Source code

function bool FindOnlineGames ( byte SearchingPlayerNum,OnlineGameSearch SearchSettings )
Searches for games matching the settings specified
@param SearchingPlayerNum the index of the player searching for a match
@param SearchSettings the desired settings that the returned sessions will have
@return true if successful searching for sessions, false otherwise

FreeSearchResults Source code

function bool FreeSearchResults ( optional OnlineGameSearch Search )
Cleans up any platform specific allocated data contained in the search results
@param Search the object to free search results for
@return true if successful, false otherwise

GetArbitratedPlayers Source code

function array<OnlineArbitrationRegistrant> GetArbitratedPlayers ( )
Returns the list of arbitrated players for the arbitrated session

GetGameSearch Source code

function OnlineGameSearch GetGameSearch ( )
Returns the currently set game search object

GetGameSettings Source code

function OnlineGameSettings GetGameSettings ( )
Returns the currently set game settings

GetOnlineGameState Source code

function EOnlineGameState GetOnlineGameState ( )
Returns the current state of the online game

GetResolvedConnectString Source code

function bool GetResolvedConnectString ( out string ConnectInfo )
Returns the platform specific connection information for joining the match. Call this function from the delegate of join completion
@param ConnectInfo the out var containing the platform specific connection information
@return true if the call was successful, false otherwise

JoinOnlineGame Source code

function bool JoinOnlineGame ( byte PlayerNum,const out OnlineGameSearchResult DesiredGame )
Joins the game specified
@param PlayerNum the index of the player searching for a match
@param DesiredGame the desired game to join
@return true if the call completed successfully, false otherwise

QueryAuxServerInfo Source code

function bool QueryAuxServerInfo ( byte SearchingPlayerNum,OnlineGameSearch SearchSettings,const out OnlineGameSearchResult Server )
Query an individual server for additional information

RecalculateSkillRating Source code

function bool RecalculateSkillRating ( const out array<UniqueNetId> Players )
Updates the current session's skill rating using the list of players' skills
@param Players the set of players to use in the skill calculation
@return true if the update succeeded, false otherwise

RegisterForArbitration Source code

function bool RegisterForArbitration ( )
Tells the game to register with the underlying arbitration server if available

RegisterPlayer Source code

function bool RegisterPlayer ( UniqueNetId PlayerId,bool bWasInvited )
Registers a player with the online service as being part of the online game
@param UniquePlayerId the player to register with the online service
@param bWasInvited whether the player was invited to the game or searched for it
@return true if the call succeeds, false otherwise

StartOnlineGame Source code

function bool StartOnlineGame ( )
Marks an online game as in progress (as opposed to being in lobby)
@return true if the call succeeds, false otherwise

UnregisterPlayer Source code

function bool UnregisterPlayer ( UniqueNetId PlayerId )
Unregisters a player with the online service as being part of the online game
@param PlayerId the player to unregister with the online service
@return true if the call succeeds, false otherwise

UpdateOnlineGame Source code

function bool UpdateOnlineGame ( OnlineGameSettings UpdatedGameSettings )
Updates the localized settings/properties for the game in question
@param UpdatedGameSettings the object to update the game settings with
@return true if successful creating the session, false otherwsie


Defaultproperties

defaultproperties
{
   Name="Default__OnlineGameInterface"
   ObjectArchetype=Interface'Core.Default__Interface'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:40.090 - Created with UnCodeX