Files
o3de/Code/Framework/AzFramework/AzFramework/Script/ScriptDebugAgentBus.h
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

33 lines
1001 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#ifndef SCRIPT_DEBUG_AGENT_BUS_H
#define SCRIPT_DEBUG_AGENT_BUS_H
#include <AzCore/EBus/EBus.h>
#include <AzCore/Script/ScriptContextDebug.h>
namespace AzFramework
{
/*
* The script debug agent, if available, will listen on this bus.
*/
class ScriptDebugAgentEvents
: public AZ::EBusTraits
{
public:
virtual ~ScriptDebugAgentEvents() {}
virtual void RegisterContext(AZ::ScriptContext* sc, const char* name) = 0; // Tells the agent that a new script context is available for debugging.
virtual void UnregisterContext(AZ::ScriptContext* sc) = 0; // Remove a script context from the agent's list.
};
typedef AZ::EBus<ScriptDebugAgentEvents> ScriptDebugAgentBus;
} // namespace HExFramework
#endif
#pragma once