Fixed an issue with lua context manager, tested to make sure it worked, started a document for the algorithm lua structure, updated engine loop
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "../engine/utility/camera.hpp"
|
||||
#include "../engine/utility/grid2d.hpp"
|
||||
#include "../engine/scripting/luacontextmanager.hpp"
|
||||
#include "dungeonalgorithm.hpp"
|
||||
#include <vector>
|
||||
#include <range/v3/range.hpp>
|
||||
#include <range/v3/view.hpp>
|
||||
@@ -36,12 +37,14 @@ private:
|
||||
Grid2D<char> tile_map = Grid2D<char>(0, 0);
|
||||
Camera camera = Camera();
|
||||
LuaContextManager lua_context_manager = LuaContextManager();
|
||||
std::optional<DungeonAlgorithm> current_algorithm;
|
||||
|
||||
int x = 0;
|
||||
int y=0;
|
||||
int sprite_index = 1;
|
||||
|
||||
void initialize_map(int width, int height);
|
||||
void update_algorithm(DungeonAlgorithm algorithm);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user