summaryrefslogblamecommitdiffstats
path: root/src/Core.hpp
blob: 3c2d8da98673f6a2dc52ebb3bb586aa97733d369 (plain) (tree)






















                                                              
#pragma once

#include <thread>
#include <memory>

#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();
};