PythonBindingsInterface.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. * its licensors.
  4. *
  5. * For complete copyright and license terms please see the LICENSE at the root of this
  6. * distribution (the "License"). All use of this software is governed by the License,
  7. * or, if provided, by the license below or the license accompanying this file. Do not
  8. * remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. */
  12. #pragma once
  13. #include <AzCore/EBus/EBus.h>
  14. #include <AzCore/Interface/Interface.h>
  15. #include <AzCore/std/string/string.h>
  16. #include <AzCore/std/containers/vector.h>
  17. #include <GemCatalog/GemInfo.h>
  18. #include <ProjectInfo.h>
  19. namespace O3DE::ProjectManager
  20. {
  21. //! Interface used to interact with the o3de cli python functions
  22. class IPythonBindings
  23. {
  24. public:
  25. AZ_RTTI(O3DE::ProjectManager::IPythonBindings, "{C2B72CA4-56A9-4601-A584-3B40E83AA17C}");
  26. AZ_DISABLE_COPY_MOVE(IPythonBindings);
  27. IPythonBindings() = default;
  28. virtual ~IPythonBindings() = default;
  29. //! Get the current project
  30. virtual ProjectInfo GetCurrentProject() = 0;
  31. };
  32. using PythonBindingsInterface = AZ::Interface<IPythonBindings>;
  33. } // namespace O3DE::ProjectManager