add interacton by long press

This commit is contained in:
ChancellorIkseew
2024-11-03 06:55:17 +10:00
parent 316de42cca
commit ee8d0368bd
5 changed files with 27 additions and 18 deletions
+2 -1
View File
@@ -6,6 +6,7 @@
#include "ChunksController.hpp"
#include "PlayerController.hpp"
class Engine;
class Level;
class Player;
struct EngineSettings;
@@ -19,7 +20,7 @@ class LevelController {
std::unique_ptr<ChunksController> chunks;
std::unique_ptr<PlayerController> player;
public:
LevelController(EngineSettings& settings, std::unique_ptr<Level> level);
LevelController(Engine* engine, std::unique_ptr<Level> level);
/// @param delta time elapsed since the last update
/// @param input is user input allowed to be handled