ProjectUserPrefs.h 746 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include <Atomic/Core/Object.h>
  3. using namespace Atomic;
  4. #include "../Platform/Platform.h"
  5. namespace ToolCore
  6. {
  7. class ProjectUserPrefs : public Object
  8. {
  9. friend class Project;
  10. OBJECT(ProjectUserPrefs);
  11. public:
  12. /// Construct.
  13. ProjectUserPrefs(Context* context);
  14. /// Destruct.
  15. virtual ~ProjectUserPrefs();
  16. // platform used when not specified
  17. PlatformID GetDefaultPlatform() const { return defaultPlatform_; }
  18. const String& GetLastBuildPath() { return lastBuildPath_; }
  19. void SetLastBuildPath(const String& path) { lastBuildPath_ = path; }
  20. private:
  21. bool Load(const String& path);
  22. void Save(const String& path);
  23. PlatformID defaultPlatform_;
  24. String lastBuildPath_;
  25. };
  26. }