Plasma Engine  2.0
Loading...
Searching...
No Matches
SubstancePackageAssetManager.h
1#pragma once
2
3#include <EditorFramework/Assets/AssetDocumentManager.h>
4#include <Foundation/Types/Status.h>
5
7{
9
10public:
13
14 const plAssetDocumentTypeDescriptor& GetTextureTypeDesc() const { return m_TextureTypeDesc; }
15
16private:
17 virtual void FillOutSubAssetList(const plAssetDocumentInfo& assetInfo, plDynamicArray<plSubAssetData>& out_subAssets) const override;
18 virtual plString GetAssetTableEntry(const plSubAsset* pSubAsset, plStringView sDataDirectory, const plPlatformProfile* pAssetProfile) const override;
19 virtual plUInt64 ComputeAssetProfileHashImpl(const plPlatformProfile* pAssetProfile) const override { return 1; }
20
21 void OnDocumentManagerEvent(const plDocumentManager::Event& e);
22
23 virtual void InternalCreateDocument(plStringView sDocumentTypeName, plStringView sPath, bool bCreateNewDocument, plDocument*& out_pDocument, const plDocumentObject* pOpenContext) override;
24 virtual void InternalGetSupportedDocumentTypes(plDynamicArray<const plDocumentTypeDescriptor*>& inout_DocumentTypes) const override;
25
26 virtual bool GeneratesProfileSpecificAssets() const override { return true; }
27
28 plAssetDocumentTypeDescriptor m_PackageTypeDesc;
29 plAssetDocumentTypeDescriptor m_TextureTypeDesc;
30};
Definition AssetDocumentInfo.h:7
Definition AssetDocumentManager.h:13
Definition Document.h:57
Definition DocumentObjectBase.h:11
Definition DynamicArray.h:81
Definition PlatformProfile.h:25
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
Definition SubstancePackageAssetManager.h:7
Definition Declarations.h:89
Definition DocumentManager.h:65
Information about an asset or sub-asset.
Definition AssetCurator.h:107