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

UBrowser.UBrowserGSpyFact


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
class UBrowserGSpyFact extends UBrowserServerListFactory;

var UBrowserGSpyLink Link;

var() config string     MasterServerAddress;    // Address of the master server
var() config int        MasterServerTCPPort;    // Optional port that the master server is listening on
var() config int        Region;                 // Region of the game server
var() config int        MasterServerTimeout;
var() config string     GameName;

function Query(optional bool bBySuperset, optional bool bInitial)
{
    Link = GetPlayerOwner().GetEntryLevel().Spawn(class'UBrowserGSpyLink');

    Link.MasterServerAddress = MasterServerAddress;
    Link.MasterServerTCPPort = MasterServerTCPPort;
    Link.Region = Region;
    Link.MasterServerTimeout = MasterServerTimeout;
    Link.GameName = GameName;
    Link.OwnerFactory = Self;
    Link.Start();

    Super.Query();
}

function QueryFinished(bool bSuccess, optional string ErrorMsg)
{
    Link.Destroy();
    Link = None;

    Super.QueryFinished(bSuccess, ErrorMsg);    
}

function Shutdown(optional bool bBySuperset)
{
    if(Link != None)
        Link.Destroy();
    Link = None;
    Super.Shutdown(bBySuperset);
}

defaultproperties
{
     MasterServerTCPPort=28900
     MasterServerTimeout=10
     GameName="unreal"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 13:06:32.000 - Creation time: za 22-4-2006 13:07:28.265 - Created with UnCodeX