Project.h 839 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <filesystem>
  3. #include <memory>
  4. #include <string>
  5. #include "ImageAdjustments.h"
  6. #include "Types.h"
  7. #include "WallpaperEngine/Assets/AssetLocator.h"
  8. namespace WallpaperEngine::Data::Model {
  9. using namespace WallpaperEngine::Assets;
  10. struct Project {
  11. enum Type { Type_Scene = 0, Type_Web = 1, Type_Video = 2, Type_Unknown = 3 };
  12. std::string title;
  13. Type type;
  14. /** Negative if not present */
  15. std::string workshopId;
  16. bool supportsAudioProcessing;
  17. Properties properties;
  18. WallpaperUniquePtr wallpaper;
  19. AssetLocatorUniquePtr assetLocator;
  20. ImageAdjustments imageAdjustments;
  21. /** Scene file WE opens (the base wallpaper's for a preset), keys script localStorage */
  22. std::filesystem::path sceneFile;
  23. /** scene.json "version", 0 when missing */
  24. int sceneVersion = 0;
  25. };
  26. };