From f942405184c2d6067fb5303b58a225edf7e452b1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 29 Jul 2017 19:55:16 +0500 Subject: 2017-07-29 --- src/Core.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Core.hpp (limited to 'src/Core.hpp') diff --git a/src/Core.hpp b/src/Core.hpp new file mode 100644 index 0000000..3c2d8da --- /dev/null +++ b/src/Core.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include +#include + +#include "Render.hpp" +#include "Event.hpp" + +class Core { + std::thread coreLoop; + std::thread networkLoop; + Render* render; + + GlobalState globalState = GlobalState::InitialLoading; + + void ExecuteCoreLoop(); + void ExecuteNetworkLoop(); +public: + Core(); + ~Core(); + + void ExecuteRenderLoop(); +}; \ No newline at end of file -- cgit v1.2.3