Plasma Engine  2.0
Loading...
Searching...
No Matches
CustomDataAsset.h
1#pragma once
2
3#include <Core/Utils/CustomData.h>
4#include <EditorFramework/Assets/SimpleAssetDocument.h>
5
7{
8 PL_ADD_DYNAMIC_REFLECTION(plCustomDataAssetProperties, plReflectedClass);
9
10public:
11 plCustomData* m_pType = nullptr;
12};
13
14
15class plCustomDataAssetDocument : public plSimpleAssetDocument<plCustomDataAssetProperties>
16{
18
19public:
21
22protected:
23 virtual plTransformStatus InternalTransformAsset(plStreamWriter& stream, plStringView sOutputTag, const plPlatformProfile* pAssetProfile,
24 const plAssetFileHeader& AssetHeader, plBitflags<plTransformFlags> transformFlags) override;
25};
Simple class to handle asset file headers (the very first bytes in all transformed asset files)
Definition AssetFileHeader.h:8
Definition CustomDataAsset.h:16
virtual plTransformStatus InternalTransformAsset(plStreamWriter &stream, plStringView sOutputTag, const plPlatformProfile *pAssetProfile, const plAssetFileHeader &AssetHeader, plBitflags< plTransformFlags > transformFlags) override
Override this and write the transformed file for the given szOutputTag into the given stream.
Definition CustomDataAsset.cpp:36
Definition CustomDataAsset.h:7
A base class for user-defined data assets.
Definition CustomData.h:23
Definition PlatformProfile.h:25
All classes that should be dynamically reflectable, need to be derived from this base class.
Definition DynamicRTTI.h:86
Definition SimpleAssetDocument.h:23
Interface for binary out (write) streams.
Definition Stream.h:107
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
Definition Declarations.h:114