コード例 #1
0
 private static void On_Observer_Chat_Channel_Join_Response( EMatchInstanceID match_id, EPersistenceID player_id, CJoinChatChannelResponseServerMessage response )
 {
     CServerMatchInstanceManager.Instance.On_Observer_Chat_Channel_Join_Response( match_id, player_id, response );
 }
コード例 #2
0
        public void On_Lobby_Chat_Channel_Join_Response( ELobbyID lobby_id, EPersistenceID player_id, CJoinChatChannelResponseServerMessage response_msg )
        {
            CLog.Log( ELoggingChannel.Lobby, ELogLevel.Medium, String.Format( "Lobby {0} chat channel join result = {1}.",
                                                                                                    Get_Lobby_Log_Description( lobby_id ),
                                                                                                    response_msg.Error.ToString() ) );

            CServerLobby lobby = Get_Lobby( lobby_id );
            if ( lobby == null )
            {
                return;
            }

            if ( !lobby.Is_Member( player_id ) )
            {
                return;
            }

            if ( response_msg.Error != EChannelJoinError.None )
            {
                if ( player_id == lobby.Creator )
                {
                    Shutdown_Lobby( lobby_id, ELobbyDestroyedReason.Chat_Channel_Join_Failure );
                }
                else
                {
                    Remove_From_Lobby( lobby_id, player_id, ERemovedFromLobbyReason.Unable_To_Join_Chat_Channel );
                }
            }
        }
コード例 #3
0
 private static void On_Lobby_Chat_Channel_Join_Response( EPersistenceID player_id, ELobbyID lobby_id, CJoinChatChannelResponseServerMessage response )
 {
     CServerLobbyManager.Instance.On_Lobby_Chat_Channel_Join_Response( lobby_id, player_id, response );
 }
        public void On_Observer_Chat_Channel_Join_Response( EMatchInstanceID match_id, EPersistenceID player_id, CJoinChatChannelResponseServerMessage response )
        {
            CServerMatchInstance match_instance = Get_Match_Instance( match_id );
            if ( match_instance == null )
            {
                return;
            }

            // Chat creation and joining should never fail
            if ( response.Error != EChannelJoinError.None )
            {
                Shutdown_Match( match_id, EMatchDestroyedReason.Chat_Channel_Join_Failure );
                return;
            }
        }