BsProjectSettings.h 959 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsSettings.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief Contains various globally accessible project-specific preferences.
  8. */
  9. class BS_ED_EXPORT ProjectSettings : public Settings
  10. {
  11. public:
  12. ProjectSettings();
  13. /**
  14. * @brief Retrieves the UUID of the last scene open in the editor.
  15. */
  16. String getLastOpenScene() const { return mLastOpenScene; }
  17. /**
  18. * @brief Sets the UUID of the last scene open in the editor.
  19. */
  20. void setLastOpenScene(const String& value) { mLastOpenScene = value; markAsDirty(); }
  21. private:
  22. String mLastOpenScene;
  23. /************************************************************************/
  24. /* RTTI */
  25. /************************************************************************/
  26. public:
  27. friend class ProjectSettingsRTTI;
  28. static RTTITypeBase* getRTTIStatic();
  29. virtual RTTITypeBase* getRTTI() const override;
  30. };
  31. }