Plasma Engine  2.0
Loading...
Searching...
No Matches
AssetDocumentInfo.h
1#pragma once
2
3#include <EditorFramework/EditorFrameworkDLL.h>
4#include <ToolsFoundation/Document/Document.h>
5
6class PL_EDITORFRAMEWORK_DLL plAssetDocumentInfo final : public plDocumentInfo
7{
8 PL_ADD_DYNAMIC_REFLECTION(plAssetDocumentInfo, plDocumentInfo);
9
10public:
12 virtual ~plAssetDocumentInfo();
14 void operator=(plAssetDocumentInfo&& rhs);
16 void CreateShallowClone(plAssetDocumentInfo& out_docInfo) const;
17 void ClearMetaData();
18
20
24
27 plHashedString m_sAssetsDocumentTypeName;
31
32 const char* GetAssetsDocumentTypeName() const;
33 void SetAssetsDocumentTypeName(const char* szSz);
34
36 const plReflectedClass* GetMetaInfo(const plRTTI* pType) const;
37
39 template <typename T>
40 const T* GetMetaInfo() const
41 {
42 return static_cast<const T*>(GetMetaInfo(plGetStaticRTTI<T>()));
43 }
44
45private:
47 void operator=(const plAssetDocumentInfo&) = delete;
48};
Definition AssetDocumentInfo.h:7
plSet< plString > m_PackageDependencies
[Data dir relative path or GUID] Files that are needed at runtime and should be packaged with the gam...
Definition AssetDocumentInfo.h:23
plSet< plString > m_Outputs
Definition AssetDocumentInfo.h:25
plUInt64 m_uiSettingsHash
Current hash over all settings in the document, used to check resulting resource for being up-to-date...
Definition AssetDocumentInfo.h:19
const T * GetMetaInfo() const
Returns an object from m_MetaInfo of the given base type, or nullptr if none exists.
Definition AssetDocumentInfo.h:40
plSet< plString > m_TransformDependencies
[Data dir relative path or GUID] Files that are required to generate the asset, ie....
Definition AssetDocumentInfo.h:21
plDynamicArray< plReflectedClass * > m_MetaInfo
Definition AssetDocumentInfo.h:29
plSet< plString > m_ThumbnailDependencies
[Data dir relative path or GUID] Files that are used to generate the thumbnail.
Definition AssetDocumentInfo.h:22
Definition Declarations.h:72
Definition DynamicArray.h:81
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30
All classes that should be dynamically reflectable, need to be derived from this base class.
Definition DynamicRTTI.h:86
Definition Set.h:238