project.h 554 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <irrlicht/irrlicht.h>
  3. #include <nlohmann/json.hpp>
  4. #include "scene.h"
  5. namespace wp::core
  6. {
  7. using json = nlohmann::json;
  8. class scene;
  9. class project
  10. {
  11. public:
  12. static project* fromFile (const irr::io::path& filename);
  13. scene* getScene ();
  14. std::string getTitle ();
  15. std::string getType ();
  16. protected:
  17. project (std::string title, std::string type, scene* scene);
  18. private:
  19. std::string m_title;
  20. std::string m_type;
  21. scene* m_scene;
  22. };
  23. };