LUAContextControlMessages.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #ifndef LUACONTEXTCONTROL_MESSAGES_H
  9. #define LUACONTEXTCONTROL_MESSAGES_H
  10. #include <AzCore/base.h>
  11. #include <AzCore/EBus/EBus.h>
  12. #include <AzCore/std/string/string.h>
  13. #pragma once
  14. namespace LUAEditor
  15. {
  16. //split these into different files later
  17. class Context_ControlManagement
  18. : public AZ::EBusTraits
  19. {
  20. public:
  21. //////////////////////////////////////////////////////////////////////////
  22. // Bus configuration
  23. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single; // we have one bus that we always broadcast to
  24. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ:: EBusHandlerPolicy::Multiple; // we can have multiple listeners.
  25. //////////////////////////////////////////////////////////////////////////
  26. typedef AZ::EBus<Context_ControlManagement> Bus;
  27. typedef Bus::Handler Handler;
  28. // Debugger connection maintenance
  29. virtual void OnDebuggerAttached() = 0;
  30. virtual void OnDebuggerRefused() = 0;
  31. virtual void OnDebuggerDetached() = 0;
  32. virtual void OnTargetConnected() = 0;
  33. virtual void OnTargetDisconnected() = 0;
  34. virtual void OnTargetContextPrepared(AZStd::string& contextName) = 0;
  35. virtual ~Context_ControlManagement() {}
  36. };
  37. }
  38. #endif//LUACONTEXTCONTROL_MESSAGES_H