mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
lua: core.open_world
This commit is contained in:
parent
0140fb8e3e
commit
567c8a365f
3 changed files with 31 additions and 6 deletions
18
src/engine.h
18
src/engine.h
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue