Exemple #1
0
        public void NotifyInDisConnectClient(ServerPacketData requestData)
        {
            var sessionIndex = requestData.SessionIndex;
            var roomNum      = SessionManager.GetRoomNumber(sessionIndex);
            var user         = UserMgr.GetUser(sessionIndex);

            if (roomNum != PacketDef.INVALID_ROOM_NUMBER && user != null)
            {
                SendInternalRoomLeavePacket(roomNum, user.ID());
            }

            if (user != null)
            {
                UserMgr.RemoveUser(sessionIndex);
            }

            SessionManager.SetClear(sessionIndex);
            InnerMessageHostProgram.CurrentUserCount(ServerNetwork.SessionCount);
        }
Exemple #2
0
 public void NotifyInConnectClient(ServerPacketData requestData)
 {
     InnerMessageHostProgram.CurrentUserCount(ServerNetwork.SessionCount);
 }