예제 #1
0
 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);
 }
예제 #2
0
 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);
    }
예제 #4
0
            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);
            }
예제 #5
0
 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;
 }
예제 #6
0
 public abstract uint PlayerDetails(uint unIP,char usPort,ISteamMatchmakingPlayersResponse pRequestServersResponse);