I'm a doctor, not a mechanic
- int MSLinkPtr
- array<QueryData> Query
- int ResultCount
- string Key
- EQueryType QueryType
- string Value
- OnQueryFinished(EResponseInfo ResponseInfo, int Info )
- OnReceivedMOTDData(EMOTDResponse Command, string Value )
- OnReceivedServer(GameInfo.ServerResponseLine s )
- LaunchAutoUpdate( )
- StartQuery(EClientToMaster Command )
- Stop( )
You use this class to query servers off of epics master server.
Spawn a new MasterServerClient actor, setup the delegates OnReceivedServer and OnQueryFinished, add queries to the query array, call StartQuery(CTM_Query) - thats it!
look for the function AddQueryTerm - its useful for adding to the query array.
TwinsenEd: I was thrown off a bit by the "gametype" query, although some of the defaults say "Onslaught.ONSOnslaught", a fully qualified name, it only returned results when I dropped the package name. You can get away with just adding a gametype as the only query item with AddQueryTerm("gametype","GameTypeName",QT_Equals);
El Muerte: and that's a good things, because package names have to change in a lot of cases (e.g. to prevent version issues)
SuperApe: Is this a class page? Custom class? Needs love.
EricBlade: Well, here's the output of a Class Wikify. :D I'm re-building my game's server browser, and would love to know how to make the best use of these functions, if anyone has any better documentation. :D