still deciding on structure
This commit is contained in:
28
src/App.h
Normal file
28
src/App.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef APP_H
|
||||
#define APP_H
|
||||
|
||||
#include "pch.hpp"
|
||||
#include "Module.h"
|
||||
#include "GuiModule.h"
|
||||
|
||||
class App {
|
||||
|
||||
private:
|
||||
static App* instance;
|
||||
|
||||
bool done;
|
||||
|
||||
std::vector<Module*> modules;
|
||||
|
||||
public:
|
||||
App();
|
||||
~App();
|
||||
|
||||
static App& Get() { return *instance; }
|
||||
|
||||
void run();
|
||||
|
||||
void end() { done = true; };
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user