You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Framework/AzFramework/AzFramework/Script/ScriptDebugAgentBus.h

34 lines
1003 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