ProjectUserPrefs.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Atomic/Core/Object.h>
  9. using namespace Atomic;
  10. #include "../Platform/Platform.h"
  11. namespace ToolCore
  12. {
  13. class ProjectUserPrefs : public Object
  14. {
  15. friend class Project;
  16. OBJECT(ProjectUserPrefs);
  17. public:
  18. /// Construct.
  19. ProjectUserPrefs(Context* context);
  20. /// Destruct.
  21. virtual ~ProjectUserPrefs();
  22. // platform used when not specified
  23. PlatformID GetDefaultPlatform() const { return defaultPlatform_; }
  24. const String& GetLastBuildPath() { return lastBuildPath_; }
  25. void SetLastBuildPath(const String& path) { lastBuildPath_ = path; }
  26. private:
  27. bool Load(const String& path);
  28. void Save(const String& path);
  29. PlatformID defaultPlatform_;
  30. String lastBuildPath_;
  31. };
  32. }