d7045f4c31
* Renamed ctest_pytest.ini to pytest.ini so it is used by default, added TestSuite_ as collection file (#4822) * Fixed warnings of unused marks, renamed ctest_pytest.ini to pytest.ini to better consistency on runs * Fixed some test suites to run propertly * Fix missing arguments * Fixed missing cmakelists and renamed missing file * Temp disable editor_testing_tests as timeout in jenkins Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * scaffold PythonGem template Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * CustomTool was not added to CMakeLists Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * Update Templates/PythonGem/Template/Code/CMakeLists.txt makes sense thank you for the help Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * Update Templates/PythonGem/Template/Code/CMakeLists.txt Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * Delete ${NameLower}_tests_files.cmake Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * suggested changes made Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * cleanup not needed files Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * fix up template.json Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * made a correction Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * made a correction Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * fixes Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * fixes Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * more fixes, fixed a file name Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * Added helper method to az_qt_helpers for retrieving the main window instance. Signed-off-by: Chris Galvan <chgalvan@amazon.com> * additional fixes Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * Fix for AP trowing errors at boot (can not get mainwindow) Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * Added missing EBus connect/disconnect calls in the EditorSystemComponent Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> * additional fix up Signed-off-by: Jonny Gallowy <gallowj@amazon.com> * adding dialog internals Signed-off-by: Jonny Gallowy <gallowj@amazon.com> Co-authored-by: AMZN-AlexOteiza <82234181+AMZN-AlexOteiza@users.noreply.github.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Co-authored-by: Chris Galvan <chgalvan@amazon.com>
71 lines
2.3 KiB
C++
71 lines
2.3 KiB
C++
// {BEGIN_LICENSE}
|
|
/*
|
|
* 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
|
|
*
|
|
*/
|
|
// {END_LICENSE}
|
|
|
|
#include <AzCore/Serialization/SerializeContext.h>
|
|
#include <${Name}EditorSystemComponent.h>
|
|
|
|
namespace ${SanitizedCppName}
|
|
{
|
|
void ${SanitizedCppName}EditorSystemComponent::Reflect(AZ::ReflectContext* context)
|
|
{
|
|
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
|
|
{
|
|
serializeContext->Class<${SanitizedCppName}EditorSystemComponent, AZ::Component>();
|
|
}
|
|
}
|
|
|
|
${SanitizedCppName}EditorSystemComponent::${SanitizedCppName}EditorSystemComponent()
|
|
{
|
|
if (${SanitizedCppName}Interface::Get() == nullptr)
|
|
{
|
|
${SanitizedCppName}Interface::Register(this);
|
|
}
|
|
}
|
|
|
|
${SanitizedCppName}EditorSystemComponent::~${SanitizedCppName}EditorSystemComponent()
|
|
{
|
|
if (${SanitizedCppName}Interface::Get() == this)
|
|
{
|
|
${SanitizedCppName}Interface::Unregister(this);
|
|
}
|
|
}
|
|
|
|
void ${SanitizedCppName}EditorSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
|
|
{
|
|
provided.push_back(AZ_CRC_CE("${SanitizedCppName}EditorService"));
|
|
}
|
|
|
|
void ${SanitizedCppName}EditorSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
|
|
{
|
|
incompatible.push_back(AZ_CRC_CE("${SanitizedCppName}EditorService"));
|
|
}
|
|
|
|
void ${SanitizedCppName}EditorSystemComponent::GetRequiredServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& required)
|
|
{
|
|
}
|
|
|
|
void ${SanitizedCppName}EditorSystemComponent::GetDependentServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& dependent)
|
|
{
|
|
}
|
|
|
|
void ${SanitizedCppName}EditorSystemComponent::Activate()
|
|
{
|
|
${SanitizedCppName}RequestBus::Handler::BusConnect();
|
|
AzToolsFramework::EditorEvents::Bus::Handler::BusConnect();
|
|
}
|
|
|
|
void ${SanitizedCppName}EditorSystemComponent::Deactivate()
|
|
{
|
|
AzToolsFramework::EditorEvents::Bus::Handler::BusDisconnect();
|
|
${SanitizedCppName}RequestBus::Handler::BusDisconnect();
|
|
}
|
|
|
|
} // namespace ${SanitizedCppName}
|