selection_query_service.h 491 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <QObject>
  3. #include <QString>
  4. #include <QVariantMap>
  5. namespace Engine::Core {
  6. class World;
  7. }
  8. class SelectionQueryService : public QObject {
  9. Q_OBJECT
  10. public:
  11. explicit SelectionQueryService(Engine::Core::World *world,
  12. QObject *parent = nullptr);
  13. [[nodiscard]] QString get_selected_units_command_mode() const;
  14. [[nodiscard]] QVariantMap get_selected_units_mode_availability() const;
  15. private:
  16. Engine::Core::World *m_world;
  17. };