Files
o3de/Gems/ScriptEvents/Code/Tests/ScriptEventsTestApplication.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

55 lines
1.8 KiB
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
*
*/
#pragma once
#include "ScriptEventsSystemComponent.h"
#include <AzFramework/Application/Application.h>
#include <AzCore/Asset/AssetManagerComponent.h>
#include <AzCore/Jobs/JobManagerComponent.h>
#include <AzCore/IO/Streamer/StreamerComponent.h>
#include <AzCore/Memory/MemoryComponent.h>
#include <AzFramework/Asset/AssetCatalogComponent.h>
namespace ScriptEventsTests
{
class Application
: public AzFramework::Application
{
public:
using SuperType = AzFramework::Application;
AZ::ComponentTypeList GetRequiredSystemComponents() const override
{
AZ::ComponentTypeList components;
components.insert(components.end(),
{
azrtti_typeid<ScriptEvents::ScriptEventsSystemComponent>(),
azrtti_typeid<AZ::MemoryComponent>(),
azrtti_typeid<AZ::AssetManagerComponent>(),
azrtti_typeid<AZ::JobManagerComponent>(),
azrtti_typeid<AZ::StreamerComponent>(),
azrtti_typeid<AzFramework::AssetCatalogComponent>(),
});
return components;
}
void CreateReflectionManager() override
{
SuperType::CreateReflectionManager();
RegisterComponentDescriptor(ScriptEvents::ScriptEventsSystemComponent::CreateDescriptor());
RegisterComponentDescriptor(AZ::MemoryComponent::CreateDescriptor());
RegisterComponentDescriptor(AZ::AssetManagerComponent::CreateDescriptor());
RegisterComponentDescriptor(AzFramework::AssetCatalogComponent::CreateDescriptor());
}
};
}