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

UTGame.UTDataStore_GameSearchHistory

Extends
UTDataStore_GameSearchBase
Modifiers
config ( Game )

This specialized online game search data store provides the UI access to the search query and results for the player's most recently visited servers. It is aware of the main game search data store, and ensures that the main search data store is not busy before allowing any action to take place. Copyright 2007 Epic Games, Inc. All Rights Reserved

Core.Object
|   
+-- Engine.UIRoot
   |   
   +-- Engine.UIDataProvider
      |   
      +-- Engine.UIDataStore
         |   
         +-- Engine.UIDataStore_Remote
            |   
            +-- Engine.UIDataStore_OnlineGameSearch
               |   
               +-- UTGame.UTDataStore_GameSearchBase
                  |   
                  +-- UTGame.UTDataStore_GameSearchHistory

Constants Summary
MAX_SERVERHISTORY=15

Variables Summary
UTDataStore_GameSearchDMPrimaryGameSearchDataStore
stringServerHistory[MAX_SERVERHISTORY]
Inherited Variables from UTGame.UTDataStore_GameSearchBase
ServerDetailsProvider
Inherited Variables from Engine.UIDataStore_OnlineGameSearch
ActiveSearchIndex, GameInterface, GameSearchCfgList, OnlineSub, SearchResultsName, SelectedIndex

Structures Summary
Inherited Structures from Engine.UIDataStore_OnlineGameSearch
GameSearchCfg

Functions Summary
function AddServer (int ControllerId, UniqueNetId IdToAdd ))
functionint FindServerIndexById (int ControllerId, const out UniqueNetId IdToFind ))
functionint FindServerIndexByString (int ControllerId, string IdToFind ))
functionstring GetPlayerName (optional int ControllerId=0 ))
functionbool GetPlayerNetId (out UniqueNetId out_PlayerId, optional int ControllerId=0 ))
function GetServerHistoryIdList (out array out_ServerList ))
function GetServerHistoryStringList (out array out_ServerList ))
functionbool HasOutstandingQueries (optional bool bRestrictCheckToSelf ))
functionbool OverrideQuerySubmission (byte ControllerId, OnlineGameSearch Search ))
function RemoveServer (int ControllerId, UniqueNetId IdToRemove ))
Inherited Functions from UTGame.UTDataStore_GameSearchBase
GetEnabledMutators, HasExistingSearchResults, HasOutstandingQueries, Init, OnSearchComplete, SubmitGameSearch
Inherited Functions from Engine.UIDataStore_OnlineGameSearch
BuildSearchResults, ClearAllSearchResults, FindSearchConfigurationIndex, GetActiveGameSearch, GetCurrentGameSearch, GetSearchResultFromIndex, Init, InvalidateCurrentSearchResults, MoveToNext, MoveToPrevious, OnSearchComplete, OverrideQuerySubmission, SetCurrentByIndex, SetCurrentByName, ShowHostGamercard, SubmitGameSearch


Constants Detail

MAX_SERVERHISTORY Source code

const MAX_SERVERHISTORY = 15;
the maximum number of most recently visited servers that will be retained


Variables Detail

PrimaryGameSearchDataStore Source code

var transient UTDataStore_GameSearchDM PrimaryGameSearchDataStore;
reference to the main game search data store

ServerHistory[MAX_SERVERHISTORY] Source code

var config string ServerHistory[MAX_SERVERHISTORY];


Functions Detail

AddServer Source code

function AddServer ( int ControllerId, UniqueNetId IdToAdd ) )
Add a server to the server history list. Places the server at position 0; if the server already exists in the list elsewhere, it is moved to position 0.
@param ControllerId the index of the controller associated with the logged in player.
@param IdToFind the UniqueNetId for the server to add

FindServerIndexById Source code

function int FindServerIndexById ( int ControllerId, const out UniqueNetId IdToFind ) )
Find the index [into the server history list] of the specified server.
@param ControllerId the index of the controller associated with the logged in player.
@param IdToFind the UniqueNetId for the server to find
@return the index [into the server history list] for the specified server

FindServerIndexByString Source code

function int FindServerIndexByString ( int ControllerId, string IdToFind ) )
Find the index [into the server history list] of the specified server.
@param ControllerId the index of the controller associated with the logged in player.
@param IdToFind the UniqueNetId for the server to find
@return the index [into the server history list] for the specified server

GetPlayerName Source code

function string GetPlayerName ( optional int ControllerId=0 ) )
Retrieve the name of the currently logged in profile.
@param ControllerId the index of the controller associated with the logged in player.
@return the name of the currently logged in player.

GetPlayerNetId Source code

function bool GetPlayerNetId ( out UniqueNetId out_PlayerId, optional int ControllerId=0 ) )
Retrieve the UniqueNetId for the currently logged in player.
@param out_PlayerId receives the value of the logged in player's UniqueNetId
@param ControllerId the index of the controller associated with the logged in player.
@return TRUE if the logged in player's UniqueNetId was successfully retrieved.

GetServerHistoryIdList Source code

function GetServerHistoryIdList ( out array<UniqueNetId> out_ServerList ) )
Retrieve the list of most recently visited servers.
@param out_ServerList receives the list of UniqueNetIds for the most recently visited servers.

GetServerHistoryStringList Source code

function GetServerHistoryStringList ( out array<string> out_ServerList ) )

HasOutstandingQueries Source code

function bool HasOutstandingQueries ( optional bool bRestrictCheckToSelf ) )

@param bRestrictCheckToSelf if TRUE, will not check related game search data stores for outstanding queries.
@return TRUE if a server list query was started but has not completed yet.

OverrideQuerySubmission Source code

protected function bool OverrideQuerySubmission ( byte ControllerId, OnlineGameSearch Search ) )
Worker for SubmitGameSeach; allows child classes to perform additional work before the query is submitted.
@param ControllerId the index of the controller for the player to perform the search for.
@param Search the search object that will be used to generate the query.
@return TRUE to prevent SubmitGameSeach from submitting the search (such as when you do this step yourself).

RemoveServer Source code

function RemoveServer ( int ControllerId, UniqueNetId IdToRemove ) )
Removes the specified server from the server history list.
@param ControllerId the index of the controller associated with the logged in player.
@param IdToRemove the UniqueNetId for the server to remove


Defaultproperties

defaultproperties
{
   GameSearchCfgList(0)=(GameSearchClass=Class'UTGame.UTGameSearchHistory',DefaultGameSettingsClass=Class'UTGame.UTGameSettingsHistory',SearchResultsProviderClass=Class'UTGame.UTUIDataProvider_SearchResult',SearchName="UTGameSearchHistory")
   Tag="UTGameHistory"
   Name="Default__UTDataStore_GameSearchHistory"
   ObjectArchetype=UTDataStore_GameSearchBase'UTGame.Default__UTDataStore_GameSearchBase'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Mon 26/11/2007 17:41:20.343 - Created with UnCodeX