ScriptRepeaterBus.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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/std/string/string_view.h>
  14. #include <AzCore/EBus/EBus.h>
  15. namespace AtomSampleViewer
  16. {
  17. class ScriptRepeaterRequests
  18. : public AZ::EBusTraits
  19. {
  20. public:
  21. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  22. //! Reports a snippet of script that can be run to repeat some action that was just done by the user.
  23. virtual void ReportScriptableAction(AZStd::string_view scriptCommand) = 0;
  24. };
  25. using ScriptRepeaterRequestBus = AZ::EBus<ScriptRepeaterRequests>;
  26. } // namespace AtomSampleViewer