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.
30 lines
661 B
C++
30 lines
661 B
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/EBus/EBus.h>
|
|
|
|
class CommandManagerRequests : public AZ::EBusTraits
|
|
{
|
|
public:
|
|
|
|
struct CommandDetails
|
|
{
|
|
AZStd::string m_name;
|
|
AZStd::vector<AZStd::string> m_arguments;
|
|
};
|
|
|
|
virtual AZStd::vector<AZStd::string> GetCommands() const = 0;
|
|
virtual void ExecuteCommand(const AZStd::string& commandLine) {}
|
|
|
|
virtual void GetCommandDetails(AZStd::string commandName, CommandDetails& outArguments) const = 0;
|
|
|
|
};
|
|
|
|
using CommandManagerRequestBus = AZ::EBus<CommandManagerRequests>;
|