BsProjectSettings.h 1.2 KB

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