/* * 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 #include #include #include namespace AZ::Prefab { class PrefabGroupAssetHandler final : public AZ::Data::AssetHandler { public: AZ_CLASS_ALLOCATOR(PrefabGroupAssetHandler, AZ::SystemAllocator, 0); PrefabGroupAssetHandler(); ~PrefabGroupAssetHandler() override; static AZStd::string_view s_Extension; protected: AZ::Data::AssetData* CreateAsset(const AZ::Data::AssetId& id, const AZ::Data::AssetType& type) override; void DestroyAsset(AZ::Data::AssetData* ptr) override; void GetHandledAssetTypes(AZStd::vector& assetTypes) override; AZ::Data::AssetHandler::LoadResult LoadAssetData( const AZ::Data::Asset& asset, AZStd::shared_ptr stream, const AZ::Data::AssetFilterCB& assetLoadFilterCB) override; class AssetTypeInfoHandler; AZStd::shared_ptr m_assetTypeInfoHandler; }; }