summaryrefslogtreecommitdiffstats
path: root/src/network/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/network.h')
-rw-r--r--src/network/network.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/network/network.h b/src/network/network.h
index 6d002d693..74eb42bf5 100644
--- a/src/network/network.h
+++ b/src/network/network.h
@@ -10,16 +10,25 @@
namespace Network {
-/// Initializes and registers the network device, the room, and the room member.
-bool Init();
+class RoomNetwork {
+public:
+ RoomNetwork();
-/// Returns a pointer to the room handle
-std::weak_ptr<Room> GetRoom();
+ /// Initializes and registers the network device, the room, and the room member.
+ bool Init();
-/// Returns a pointer to the room member handle
-std::weak_ptr<RoomMember> GetRoomMember();
+ /// Returns a pointer to the room handle
+ std::weak_ptr<Room> GetRoom();
-/// Unregisters the network device, the room, and the room member and shut them down.
-void Shutdown();
+ /// Returns a pointer to the room member handle
+ std::weak_ptr<RoomMember> GetRoomMember();
+
+ /// Unregisters the network device, the room, and the room member and shut them down.
+ void Shutdown();
+
+private:
+ std::shared_ptr<RoomMember> g_room_member; ///< RoomMember (Client) for network games
+ std::shared_ptr<Room> g_room; ///< Room (Server) for network games
+};
} // namespace Network