Exemple #1
0
        void ResponseErrorLobbyChat(int sessionID, ERROR_CODE result)
        {
            var response = new JsonPacketNoticeChat()
            {
                Result = ERROR_CODE.ERROR
            };

            ServerNetworkRef.Send <JsonPacketNoticeChat>(sessionID, PACKET_ID.NOTICE_CHAT, response);
        }
Exemple #2
0
        public void Chatting(ServerNetwork serverNetwork, string userID, string chatMsg)
        {
            var notify = new JsonPacketNoticeChat() { Result = ERROR_CODE.NONE, UserID = userID, Chat = chatMsg };

            UserList.ForEach(user =>
                {
                    serverNetwork.Send<JsonPacketNoticeChat>(user.SessionID, PACKET_ID.NOTICE_CHAT, notify);
                }
            );
        }
Exemple #3
0
        public void Chatting(ServerNetwork serverNetwork, string userID, string chatMsg)
        {
            var notify = new JsonPacketNoticeChat()
            {
                Result = ERROR_CODE.NONE, UserID = userID, Chat = chatMsg
            };

            UserList.ForEach(user =>
            {
                serverNetwork.Send <JsonPacketNoticeChat>(user.SessionID, PACKET_ID.NOTICE_CHAT, notify);
            }
                             );
        }
Exemple #4
0
 void ResponseErrorLobbyChat(int sessionID, ERROR_CODE result)
 {
     var response = new JsonPacketNoticeChat() { Result = ERROR_CODE.ERROR };
     ServerNetworkRef.Send<JsonPacketNoticeChat>(sessionID, PACKET_ID.NOTICE_CHAT, response);
 }