Removing material type asset info
Signed-off-by: Guthrie Adams <guthadam@amazon.com>monroegm-disable-blank-issue-2
parent
44f2cbae47
commit
320ae45989
@ -1,88 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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 "MaterialAssetTypeInfo.h"
|
|
||||||
|
|
||||||
#include <LmbrCentral/Rendering/MaterialAsset.h>
|
|
||||||
|
|
||||||
namespace LmbrCentral
|
|
||||||
{
|
|
||||||
// MaterialAssetTypeInfo
|
|
||||||
|
|
||||||
MaterialAssetTypeInfo::~MaterialAssetTypeInfo()
|
|
||||||
{
|
|
||||||
Unregister();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MaterialAssetTypeInfo::Register()
|
|
||||||
{
|
|
||||||
AZ::AssetTypeInfoBus::Handler::BusConnect(AZ::AzTypeInfo<MaterialAsset>::Uuid());
|
|
||||||
}
|
|
||||||
|
|
||||||
void MaterialAssetTypeInfo::Unregister()
|
|
||||||
{
|
|
||||||
AZ::AssetTypeInfoBus::Handler::BusDisconnect(AZ::AzTypeInfo<MaterialAsset>::Uuid());
|
|
||||||
}
|
|
||||||
|
|
||||||
AZ::Data::AssetType MaterialAssetTypeInfo::GetAssetType() const
|
|
||||||
{
|
|
||||||
return AZ::AzTypeInfo<MaterialAsset>::Uuid();
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* MaterialAssetTypeInfo::GetAssetTypeDisplayName() const
|
|
||||||
{
|
|
||||||
return "Material";
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* MaterialAssetTypeInfo::GetGroup() const
|
|
||||||
{
|
|
||||||
return "Material";
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* MaterialAssetTypeInfo::GetBrowserIcon() const
|
|
||||||
{
|
|
||||||
return "Icons/Components/Decal.svg";
|
|
||||||
}
|
|
||||||
|
|
||||||
// DccMaterialAssetTypeInfo
|
|
||||||
|
|
||||||
DccMaterialAssetTypeInfo::~DccMaterialAssetTypeInfo()
|
|
||||||
{
|
|
||||||
Unregister();
|
|
||||||
}
|
|
||||||
|
|
||||||
void DccMaterialAssetTypeInfo::Register()
|
|
||||||
{
|
|
||||||
AZ::AssetTypeInfoBus::Handler::BusConnect(AZ::AzTypeInfo<DccMaterialAsset>::Uuid());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DccMaterialAssetTypeInfo::Unregister()
|
|
||||||
{
|
|
||||||
AZ::AssetTypeInfoBus::Handler::BusDisconnect(AZ::AzTypeInfo<DccMaterialAsset>::Uuid());
|
|
||||||
}
|
|
||||||
|
|
||||||
AZ::Data::AssetType DccMaterialAssetTypeInfo::GetAssetType() const
|
|
||||||
{
|
|
||||||
return AZ::AzTypeInfo<DccMaterialAsset>::Uuid();
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* DccMaterialAssetTypeInfo::GetAssetTypeDisplayName() const
|
|
||||||
{
|
|
||||||
return "DccMaterial";
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* DccMaterialAssetTypeInfo::GetGroup() const
|
|
||||||
{
|
|
||||||
return "DccMaterial";
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* DccMaterialAssetTypeInfo::GetBrowserIcon() const
|
|
||||||
{
|
|
||||||
return "Icons/Components/Decal.svg";
|
|
||||||
}
|
|
||||||
} // namespace LmbrCentral
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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 <AzCore/Asset/AssetTypeInfoBus.h>
|
|
||||||
|
|
||||||
namespace LmbrCentral
|
|
||||||
{
|
|
||||||
class MaterialAssetTypeInfo
|
|
||||||
: public AZ::AssetTypeInfoBus::Handler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
AZ_CLASS_ALLOCATOR(MaterialAssetTypeInfo, AZ::SystemAllocator, 0);
|
|
||||||
|
|
||||||
~MaterialAssetTypeInfo() override;
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// AZ::AssetTypeInfoBus::Handler
|
|
||||||
AZ::Data::AssetType GetAssetType() const override;
|
|
||||||
const char* GetAssetTypeDisplayName() const override;
|
|
||||||
const char* GetGroup() const override;
|
|
||||||
const char* GetBrowserIcon() const override;
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
void Register();
|
|
||||||
void Unregister();
|
|
||||||
};
|
|
||||||
|
|
||||||
class DccMaterialAssetTypeInfo
|
|
||||||
: public AZ::AssetTypeInfoBus::Handler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
AZ_CLASS_ALLOCATOR(DccMaterialAssetTypeInfo, AZ::SystemAllocator, 0);
|
|
||||||
|
|
||||||
~DccMaterialAssetTypeInfo() override;
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// AZ::AssetTypeInfoBus::Handler
|
|
||||||
AZ::Data::AssetType GetAssetType() const override;
|
|
||||||
const char* GetAssetTypeDisplayName() const override;
|
|
||||||
const char* GetGroup() const override;
|
|
||||||
const char* GetBrowserIcon() const override;
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
void Register();
|
|
||||||
void Unregister();
|
|
||||||
};
|
|
||||||
} // namespace LmbrCentral
|
|
||||||
Loading…
Reference in New Issue