VOX
A little voxel engine
Loading...
Searching...
No Matches
NetworkThread.hpp
Go to the documentation of this file.
1#pragma once
2
3
4#include "define.hpp"
5#include "Server.hpp"
6#include "Client.hpp"
7#include "RenderAPI.hpp"
8#include "DebugGui.hpp"
9#include "logger.hpp"
10#include "Tracy.hpp"
11
12
13
15{
16public:
17
19 Client & client
20 );
22
23 NetworkThread(NetworkThread& other) = delete;
24 NetworkThread(NetworkThread&& other) = delete;
26
27private:
28
29 Client & m_client;
30
31 std::jthread m_thread;
32
37 void launch();
38
39 void init();
40
41 void loop();
42};
The Client side interface with the network module.
Definition: Client.hpp:37
Definition: NetworkThread.hpp:15
NetworkThread & operator=(NetworkThread &other)=delete
~NetworkThread()
Definition: NetworkThread.cpp:11
NetworkThread(NetworkThread &&other)=delete
NetworkThread(NetworkThread &other)=delete