CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ResourceMetadata Struct Reference

A structure that holds metadata for a resource. More...

#include <CeresEngine/Resource/ResourceMetadata.hpp>

Public Member Functions

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo getClassInfo () const noexcept
 
virtual ::CeresEngine::ClassInfo getClassInfo () noexcept
 
virtual ~ResourceMetadata () noexcept=default
 

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

UUID resourceID
 The resource UUID.
 
bool imported = false
 Determines if the resource was imported or created in-engine.
 
ResourceURL importedFromURL
 A URL the resource was originally imported from.
 
UPtr< ResourceImportOptionsimportOptions = nullptr
 The import options used to import the resource.
 

Detailed Description

A structure that holds metadata for a resource.

Constructor & Destructor Documentation

◆ ~ResourceMetadata()

virtual CeresEngine::ResourceMetadata::~ResourceMetadata ( )
virtualdefaultnoexcept

Member Function Documentation

◆ getClassInfo() [1/2]

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo CeresEngine::ResourceMetadata::getClassInfo ( ) const
virtualnoexcept

◆ getClassInfo() [2/2]

virtual ::CeresEngine::ClassInfo CeresEngine::ResourceMetadata::getClassInfo ( )
virtualnoexcept

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::ResourceMetadata::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ imported

bool CeresEngine::ResourceMetadata::imported = false

Determines if the resource was imported or created in-engine.

◆ importedFromURL

ResourceURL CeresEngine::ResourceMetadata::importedFromURL

A URL the resource was originally imported from.

◆ importOptions

UPtr<ResourceImportOptions> CeresEngine::ResourceMetadata::importOptions = nullptr

The import options used to import the resource.

◆ resourceID

UUID CeresEngine::ResourceMetadata::resourceID

The resource UUID.


The documentation for this struct was generated from the following file: