VOX
A little voxel engine
Loading...
Searching...
No Matches
ServerBlockUpdateThread.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "define.hpp"
4#include "Tracy.hpp"
5#include "tracy_globals.hpp"
6#include "ServerWorld.hpp"
7
19{
20public:
21
23 ServerWorld & world
24 );
26
30
31private:
32
33 ServerWorld & m_world;
34
35 std::jthread m_thread;
36
41 void launch();
42
46 void init();
47
51 void loop();
52};
An implementation of the thread wrapper for the thread that handles block updates.
Definition: ServerBlockUpdateThread.hpp:19
ServerBlockUpdateThread & operator=(ServerBlockUpdateThread &other)=delete
ServerBlockUpdateThread(ServerBlockUpdateThread &other)=delete
ServerBlockUpdateThread(ServerBlockUpdateThread &&other)=delete
~ServerBlockUpdateThread()
Definition: ServerBlockUpdateThread.cpp:9
Definition: ServerWorld.hpp:16