CallProcessorBus.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <SceneAPI/SceneCore/Events/CallProcessorBus.h>
  9. namespace AZ
  10. {
  11. namespace SceneAPI
  12. {
  13. namespace Events
  14. {
  15. uint8_t CallProcessor::GetPriority() const
  16. {
  17. return CallProcessor::NormalProcessing;
  18. }
  19. bool CallProcessor::Compare(const CallProcessor* rhs) const
  20. {
  21. AZ_Assert(rhs, "Invalid argument for ProcessingEvents::Compare.");
  22. return GetPriority() < rhs->GetPriority();
  23. }
  24. ProcessingResult Process(ICallContext& context)
  25. {
  26. ProcessingResultCombiner result;
  27. CallProcessorBus::BroadcastResult(result, &CallProcessorBus::Events::Process, &context);
  28. return result.GetResult();
  29. }
  30. } // namespace Events
  31. } // namespace SceneAPI
  32. } // namespace AZ