public void OnEnable() { m_ServerListResponse = new ISteamMatchmakingServerListResponse(OnServerResponded, OnServerFailedToRespond, OnRefreshComplete); m_PingResponse = new ISteamMatchmakingPingResponse(OnServerRespondedPing, OnServerFailedToRespondPing); m_PlayersResponse = new ISteamMatchmakingPlayersResponse(OnAddPlayerToList, OnPlayersFailedToRespond, OnPlayersRefreshComplete); m_RulesResponse = new ISteamMatchmakingRulesResponse(OnRulesResponded, OnRulesFailedToRespond, OnRulesRefreshComplete); }
public PlayersQuery(uint ip, ushort port, CancellationToken cancellation) { this.ip = ip; this.port = port; this.playersResponse = new ISteamMatchmakingPlayersResponse( new ISteamMatchmakingPlayersResponse.AddPlayerToList(OnAddPlayerToList), new ISteamMatchmakingPlayersResponse.PlayersFailedToRespond(OnPlayersFailedToRespond), new ISteamMatchmakingPlayersResponse.PlayersRefreshComplete(OnPlayersRefreshComplete)); }
public void OnEnable() { m_ServerListRequest = HServerListRequest.Invalid; m_ServerQuery = HServerQuery.Invalid; m_ServerListResponse = new ISteamMatchmakingServerListResponse(OnServerResponded, OnServerFailedToRespond, OnRefreshComplete); m_PingResponse = new ISteamMatchmakingPingResponse(OnServerResponded, OnServerFailedToRespond); m_PlayersResponse = new ISteamMatchmakingPlayersResponse(OnAddPlayerToList, OnPlayersFailedToRespond, OnPlayersRefreshComplete); m_RulesResponse = new ISteamMatchmakingRulesResponse(OnRulesResponded, OnRulesFailedToRespond, OnRulesRefreshComplete); }
public ServerResponder(IPEndPoint ep, ISteamSession session) { _session = session; _ip = (uint)BitConverter.ToInt32(ep.Address.GetAddressBytes().Reverse().ToArray(), 0); _port = (ushort)ep.Port; _mPingResponse = new ISteamMatchmakingPingResponse(OnServerResponded, OnServerFailedToRespond); _mPlayersResponse = new ISteamMatchmakingPlayersResponse(OnAddPlayerToList, OnPlayersFailedToRespond, OnPlayersRefreshComplete); _mRulesResponse = new ISteamMatchmakingRulesResponse(OnRulesResponded, OnRulesFailedToRespond, OnRulesRefreshComplete); }
public override uint PlayerDetails(uint unIP,char usPort,ISteamMatchmakingPlayersResponse pRequestServersResponse) { CheckIfUsable(); uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_PlayerDetails(m_pSteamMatchmakingServers,unIP,usPort,pRequestServersResponse.GetIntPtr()); return result; }
public abstract uint PlayerDetails(uint unIP,char usPort,ISteamMatchmakingPlayersResponse pRequestServersResponse);