Plasma Engine  2.0
Loading...
Searching...
No Matches
CollectionAsset.h
1#pragma once
2
3#include <Core/Collection/CollectionResource.h>
4#include <EditorFramework/Assets/SimpleAssetDocument.h>
5
7{
8 PL_ADD_DYNAMIC_REFLECTION(plCollectionAssetEntry, plReflectedClass);
9
10public:
11 plString m_sLookupName;
12 plString m_sRedirectionAsset;
13};
14
16{
17 PL_ADD_DYNAMIC_REFLECTION(plCollectionAssetData, plReflectedClass);
18
19public:
21};
22
23class plCollectionAssetDocument : public plSimpleAssetDocument<plCollectionAssetData>
24{
26
27public:
29
30protected:
31 virtual plTransformStatus InternalTransformAsset(plStreamWriter& stream, plStringView sOutputTag, const plPlatformProfile* pAssetProfile, const plAssetFileHeader& AssetHeader, plBitflags<plTransformFlags> transformFlags) override;
32};
Simple class to handle asset file headers (the very first bytes in all transformed asset files)
Definition AssetFileHeader.h:8
Definition CollectionAsset.h:16
Definition CollectionAsset.h:24
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 CollectionAsset.cpp:84
Definition CollectionAsset.h:7
Definition DynamicArray.h:81
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