Beispiel #1
0
        void ResponseLeaveLobby(int sessionID, ERROR_CODE result, short lobbyID)
        {
            if (result == ERROR_CODE.NONE)
            {
                DevLog.Write(string.Format("[LeaveLobby] lobbyID:{0}, sessionID:{1}", lobbyID, sessionID), LOG_LEVEL.INFO);
            }
            else
            {
                DevLog.Write(string.Format("[LeaveLobby 실패] lobbyID:{0}, sessionID:{1}, result:{2}", lobbyID, sessionID, result.ToString()), LOG_LEVEL.ERROR);
            }

            var response = new JsonPacketResponseLeaveLobby()
            {
                Result = result
            };

            ServerNetworkRef.Send <JsonPacketResponseLeaveLobby>(sessionID, PACKET_ID.RESPONSE_LEAVE_LOBBY, response);
        }
Beispiel #2
0
        void ResponseLeaveLobby(int sessionID, ERROR_CODE result, short lobbyID)
        {
            if (result == ERROR_CODE.NONE)
            {
                DevLog.Write(string.Format("[LeaveLobby] lobbyID:{0}, sessionID:{1}", lobbyID, sessionID), LOG_LEVEL.INFO);
            }
            else
            {
                DevLog.Write(string.Format("[LeaveLobby 실패] lobbyID:{0}, sessionID:{1}, result:{2}", lobbyID, sessionID, result.ToString()), LOG_LEVEL.ERROR);
            }

            var response = new JsonPacketResponseLeaveLobby() { Result = result };
            ServerNetworkRef.Send<JsonPacketResponseLeaveLobby>(sessionID, PACKET_ID.RESPONSE_LEAVE_LOBBY, response);
        }