mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Cleaning Test Code
This commit is contained in:
parent
ae8906794f
commit
a09f30709c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user