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