Loading...
Searching...
No Matches
Application.hpp
#pragma once
#include "Minecraft.hpp"
#include <EASTL/unique_ptr.h>
#include <EASTL/vector.h>
#include "Core/QEventBus.hpp"
#include "Core/ThreadManager.hpp"
#include "SFML/Window/Window.hpp"
#include "Graphics/GraphicsContext.hpp"
#include "Graphics/Renderer.hpp"
namespace mce {
class Application : public Startup {
public:
Application();
virtual int run() override;
private:
private:
eastl::vector<eastl::unique_ptr<Minecraft>> instances;
std::mutex instanceMutex;
core::QEventBus qLocalBus;
core::ThreadManager threadManager;
};
}
QEventBus.hpp
Thread-safe event bus.
ThreadManager.hpp
Manages lifecycle and bookkeeping for mce::Thread instances.
Startup
Definition Startup.hpp:2
mce::Application::run
virtual int run() override
Starts the application.
Definition Application.cpp:33
mce::Application::Application
Application()
Default constructor.
Definition Application.cpp:7
mce::core::QEventBus
Thread-safe event bus.
Definition QEventBus.hpp:58
mce::core::ThreadManager
Definition ThreadManager.hpp:19