UBrowser
Class UBrowserGSpyFact

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserGSpyFact.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowList
         |
         +--UBrowser.UBrowserServerListFactory
            |
            +--UBrowser.UBrowserGSpyFact
Direct Known Subclasses:None

class UBrowserGSpyFact
extends UBrowser.UBrowserServerListFactory


Variables
 string GameName
           Region of the game server
 UBrowserGSpyLink Link
 string MasterServerAddress
           Address of the master server
 int MasterServerTCPPort
           Optional port that the master server is listening on
 int MasterServerTimeout
           Region of the game server
 int Region
           Region of the game server


Function Summary
 void Query(optional bool, optional bool)
 void QueryFinished(bool bSuccess, optional string)
 void Shutdown(optional bool)



Source Code


00001	class UBrowserGSpyFact extends UBrowserServerListFactory;
00002	
00003	var UBrowserGSpyLink Link;
00004	
00005	var() config string		MasterServerAddress;	// Address of the master server
00006	var() config int		MasterServerTCPPort;	// Optional port that the master server is listening on
00007	var() config int 		Region;					// Region of the game server
00008	var() config int		MasterServerTimeout;
00009	var() config string		GameName;
00010	
00011	function Query(optional bool bBySuperset, optional bool bInitial)
00012	{
00013		Super.Query(bBySuperset, bInitial);
00014	
00015		Link = GetPlayerOwner().GetEntryLevel().Spawn(class'UBrowserGSpyLink');
00016	
00017		Link.MasterServerAddress = MasterServerAddress;
00018		Link.MasterServerTCPPort = MasterServerTCPPort;
00019		Link.Region = Region;
00020		Link.MasterServerTimeout = MasterServerTimeout;
00021		Link.GameName = GameName;
00022		Link.OwnerFactory = Self;
00023		Link.Start();
00024	}
00025	
00026	function QueryFinished(bool bSuccess, optional string ErrorMsg)
00027	{
00028		Link.Destroy();
00029		Link = None;
00030	
00031		Super.QueryFinished(bSuccess, ErrorMsg);	
00032	}
00033	
00034	function Shutdown(optional bool bBySuperset)
00035	{
00036		if(Link != None)
00037			Link.Destroy();
00038		Link = None;
00039		Super.Shutdown(bBySuperset);
00040	}
00041	
00042	defaultproperties
00043	{
00044	     MasterServerTCPPort=28900
00045	     MasterServerTimeout=10
00046	     GameName="unreal"
00047	}

End Source Code