lua: core.open_world

This commit is contained in:
MihailRis 2024-03-20 23:55:04 +03:00
parent 0140fb8e3e
commit 567c8a365f
3 changed files with 31 additions and 6 deletions

View file

@ -1,19 +1,22 @@
#ifndef SRC_ENGINE_H_
#define SRC_ENGINE_H_
#include <string>
#include <memory>
#include <vector>
#include <stdexcept>
#include <filesystem>
#include "typedefs.h"
#include "delegates.h"
#include "settings.h"
#include "typedefs.h"
#include "assets/Assets.h"
#include "content/Content.h"
#include "content/ContentPack.h"
#include "files/engine_paths.h"
#include <filesystem>
#include <memory>
#include <queue>
#include <stdexcept>
#include <string>
#include <vector>
class Level;
class Screen;
class EnginePaths;
@ -39,6 +42,7 @@ class Engine {
std::vector<ContentPack> contentPacks;
std::unique_ptr<Content> content = nullptr;
std::unique_ptr<ResPaths> resPaths = nullptr;
std::queue<runnable> postRunnables;
uint64_t frame = 0;
double lastTime = 0.0;
@ -106,6 +110,8 @@ public:
/// @brief Get current screen
std::shared_ptr<Screen> getScreen();
void postRunnable(runnable callback);
};
#endif // SRC_ENGINE_H_