Network code documentation for my turn-based game 1.0
Loading...
Searching...
No Matches
lobby.h
Go to the documentation of this file.
1#pragma once
2
3#include "types.h"
4
11struct ClientData {
12 std::string username{};
14};
15
22class Lobby {
23public:
24 [[nodiscard]] bool IsComplete() const noexcept;
25 void AddClient(const ClientData& client_data) noexcept;
26 void Clear() noexcept;
27
30};
Lobby is a class which provides a simple, naive way of differentiating between the different clients ...
Definition lobby.h:22
ClientData client_data_1
Definition lobby.h:28
void AddClient(const ClientData &client_data) noexcept
bool IsComplete() const noexcept
ClientData client_data_2
Definition lobby.h:29
void Clear() noexcept
ClientData is a struct which contains the username of a client and its port number....
Definition lobby.h:11
Port port
Definition lobby.h:13
std::string username
Definition lobby.h:12
std::uint16_t Port
Definition types.h:19