BsSelection.h 790 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsModule.h"
  4. #include "BsPath.h"
  5. namespace BansheeEngine
  6. {
  7. class BS_ED_EXPORT Selection : public Module<Selection>
  8. {
  9. public:
  10. Selection();
  11. ~Selection();
  12. const Vector<HSceneObject>& getSceneObjects() const;
  13. void setSceneObjects(const Vector<HSceneObject>& sceneObjects);
  14. const Vector<Path>& getResourcePaths() const;
  15. void setResourcePaths(const Vector<Path>& paths);
  16. Vector<String> getResourceUUIDs() const;
  17. void setResourceUUIDs(const Vector<String>& UUIDs);
  18. private:
  19. void sceneSelectionChanged();
  20. void resourceSelectionChanged();
  21. Vector<HSceneObject> mSelectedSceneObjects;
  22. Vector<Path> mSelectedResourcePaths;
  23. HMessage mSceneSelectionChangedConn;
  24. HMessage mResourceSelectionChangedConn;
  25. };
  26. }