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.
82 lines
2.6 KiB
C++
82 lines
2.6 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
|
|
*
|
|
*/
|
|
|
|
#include <AzCore/std/smart_ptr/make_shared.h>
|
|
#include <AzCore/Serialization/SerializeContext.h>
|
|
#include <AzToolsFramework/Thumbnails/ThumbnailerNullComponent.h>
|
|
#include <AzToolsFramework/Thumbnails/ThumbnailContext.h>
|
|
#include <AzToolsFramework/Thumbnails/MissingThumbnail.h>
|
|
|
|
namespace AzToolsFramework
|
|
{
|
|
namespace Thumbnailer
|
|
{
|
|
ThumbnailerNullComponent::ThumbnailerNullComponent() :
|
|
m_nullThumbnail()
|
|
{
|
|
}
|
|
|
|
ThumbnailerNullComponent::~ThumbnailerNullComponent() = default;
|
|
|
|
void ThumbnailerNullComponent::Activate()
|
|
{
|
|
BusConnect();
|
|
}
|
|
|
|
void ThumbnailerNullComponent::Deactivate()
|
|
{
|
|
BusDisconnect();
|
|
}
|
|
|
|
void ThumbnailerNullComponent::Reflect(AZ::ReflectContext* context)
|
|
{
|
|
AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context);
|
|
if (serialize)
|
|
{
|
|
serialize->Class<ThumbnailerNullComponent, AZ::Component>();
|
|
}
|
|
}
|
|
|
|
void ThumbnailerNullComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& services)
|
|
{
|
|
services.push_back(AZ_CRC("ThumbnailerService", 0x65422b97));
|
|
}
|
|
|
|
void ThumbnailerNullComponent::RegisterContext(const char* /*contextName*/)
|
|
{
|
|
}
|
|
|
|
void ThumbnailerNullComponent::UnregisterContext(const char* /*contextName*/)
|
|
{
|
|
}
|
|
|
|
bool ThumbnailerNullComponent::HasContext(const char* /*contextName*/) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void ThumbnailerNullComponent::RegisterThumbnailProvider(AzToolsFramework::Thumbnailer::SharedThumbnailProvider /*provider*/, const char* /*contextName*/)
|
|
{
|
|
}
|
|
|
|
void ThumbnailerNullComponent::UnregisterThumbnailProvider(const char* /*providerName*/, const char* /*contextName*/)
|
|
{
|
|
}
|
|
|
|
AzToolsFramework::Thumbnailer::SharedThumbnail ThumbnailerNullComponent::GetThumbnail(AzToolsFramework::Thumbnailer::SharedThumbnailKey /*key*/, const char* /*contextName*/)
|
|
{
|
|
return m_nullThumbnail;
|
|
}
|
|
|
|
bool ThumbnailerNullComponent::IsLoading(AzToolsFramework::Thumbnailer::SharedThumbnailKey /*thumbnailKey*/, const char* /*contextName*/)
|
|
{
|
|
return false;
|
|
}
|
|
} // namespace Thumbnailer
|
|
} // namespace AzToolsFramework
|