Cleaning Test Code

This commit is contained in:
Garry Newman 2016-09-28 15:01:52 +01:00
parent ae8906794f
commit a09f30709c

View File

@ -23,8 +23,6 @@ public ServerList ServerList
}
}
public partial class ServerList
{
@ -87,40 +85,6 @@ private struct MatchPair
public string value;
}
public unsafe Request Test()
{
var filters = new Dictionary<string, string>();
filters.Add("gamedir", "rust" );
var array = filters.ToArray();
//fixed ( void* a = array )
{
var pairs = filters.Select( x => new MatchMakingKeyValuePair_t()
{
m_szKey = x.Key,
m_szValue = x.Value
}).ToArray();
var request = new Request( client );
GCHandle h = GCHandle.Alloc( pairs, GCHandleType.Pinned );
var a = h.AddrOfPinnedObject();
// request.Id = client.native.servers.RequestInternetServerList( client.AppId, h.AddrOfPinnedObject(), pairs.Length, IntPtr.Zero );
h.Free();
return request;
}
}
public Request Internet( Filter filter )
{
filter.Start();