mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 06:38:01 +03:00
Cleaning Test Code
This commit is contained in:
parent
ae8906794f
commit
a09f30709c
@ -23,8 +23,6 @@ namespace Facepunch.Steamworks
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public partial class ServerList
|
public partial class ServerList
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -87,40 +85,6 @@ namespace Facepunch.Steamworks
|
|||||||
public string value;
|
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 )
|
public Request Internet( Filter filter )
|
||||||
{
|
{
|
||||||
filter.Start();
|
filter.Start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user