X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finterface.hpp;h=8bdb8fb7ca0248bf4cb06ce14c3c9cff55cfd8b1;hb=e74f1ad236429f05db90c0ace825277e2a3fbc05;hp=d3d58e8470b4fb9c9883e364917831ceaffe8bdd;hpb=3072e2cd49ad1614100d1a1c73afe6a4888fb875;p=blank.git diff --git a/src/interface.hpp b/src/interface.hpp index d3d58e8..8bdb8fb 100644 --- a/src/interface.hpp +++ b/src/interface.hpp @@ -18,7 +18,17 @@ class World; class Interface { public: - explicit Interface(World &); + struct Config { + float move_velocity = 0.005f; + float pitch_sensitivity = -0.0025f; + float yaw_sensitivity = -0.001f; + + bool keyboard_disabled = false; + bool mouse_disabled = false; + bool visual_disabled = false; + }; + + Interface(const Config &, World &); void Handle(const SDL_KeyboardEvent &); void Handle(const SDL_MouseMotionEvent &); @@ -34,6 +44,7 @@ public: void RemoveBlock(); void PrintBlockInfo(); + void PrintChunkInfo(); void PrintLightInfo(); void PrintSelectionInfo(); void Print(const Block &); @@ -57,9 +68,7 @@ private: OutlineModel outline; glm::mat4 outline_transform; - float move_velocity; - float pitch_sensitivity; - float yaw_sensitivity; + Config config; Block remove; Block selection;