예제 #1
0
        public Servers RequestFriendServerList(Dictionary <string, string> filters, OnServerReceived onServerReceived, OnServerListReceived onServerListReceived)
        {
            string[] keys;
            string[] values;
            this.PrepServerListRequest(filters, onServerReceived, onServerListReceived, out keys, out values);
            this._serverListRequest = this._serverFilters == null?Matchmaking.SteamUnityAPI_SteamMatchmakingServers_RequestFriendServerList(this._matchmakingServers, Matchmaking.SteamUnityAPI_SteamUtils_GetAppID(), (string[])null, (string[])null, 0U, Marshal.GetFunctionPointerForDelegate((Delegate)this._onServerReceivedFromSteam), Marshal.GetFunctionPointerForDelegate((Delegate)this._onServerListReceivedFromSteam)) : Matchmaking.SteamUnityAPI_SteamMatchmakingServers_RequestFriendServerList(this._matchmakingServers, Matchmaking.SteamUnityAPI_SteamUtils_GetAppID(), keys, values, (uint)this._serverFilters.Count, Marshal.GetFunctionPointerForDelegate((Delegate)this._onServerReceivedFromSteam), Marshal.GetFunctionPointerForDelegate((Delegate)this._onServerListReceivedFromSteam));

            return(this._serverList);
        }
예제 #2
0
 public Servers RequestLANServerList(OnServerReceived onServerReceived, OnServerListReceived onServerListReceived)
 {
     string[] keys;
     string[] values;
     this.PrepServerListRequest((Dictionary <string, string>)null, onServerReceived, onServerListReceived, out keys, out values);
     this._serverListRequest = Matchmaking.SteamUnityAPI_SteamMatchmakingServers_RequestLANServerList(this._matchmakingServers, Matchmaking.SteamUnityAPI_SteamUtils_GetAppID(), Marshal.GetFunctionPointerForDelegate((Delegate)this._onServerReceivedFromSteam), Marshal.GetFunctionPointerForDelegate((Delegate)this._onServerListReceivedFromSteam));
     return(this._serverList);
 }