aboutsummaryrefslogtreecommitdiff
path: root/src/Room.cpp
blob: abcc16bdf800e28684a733e971bcaaa7c62556f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "../include/Room.hpp"

namespace dchat
{
    static std::shared_ptr<Room> currentRoom = nullptr;
    static std::shared_ptr<Rooms> rooms = nullptr;

    std::shared_ptr<Room> getCurrentRoom()
    {
        return currentRoom;
    }

    void setCurrentRoom(std::shared_ptr<Room> room)
    {
        currentRoom = room;
    }

    std::shared_ptr<Rooms> getRooms()
    {
        return rooms;
    }

    void setRooms(std::shared_ptr<Rooms> _rooms)
    {
        rooms = _rooms;
    }
}