CProject.h 575 B

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