class PackageResourceMetaData

Contains meta-data for a resource stored in a Package.

Public

Constructors

PackageResourceMetaData

PackageResourceMetaData() = default

PackageResourceMetaData

PackageResourceMetaData(Path path, const UUID &id, Vector<UUID> dependencies, CompressionType compressionMethod, u32 typeId)

Methods

GetResourceName

String GetResourceName() const

Returns the name of the resource.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Fields

Path

Path to the resource within the package.

Id

UUID Id

Unique ID of the resource.

TypeId

u32 TypeId

RTTI type ID of the resource contained.

Dependencies

Vector<UUID> Dependencies

IDs of other resource that this resource depends on.

CompressionType

Type of compression used on the serialized resource data.

Flags

PackageResourceFlags Flags

Flags to provide additional information about the resource.

AdditionalMetaData

SPtr<PackageResourceUserMetaData> AdditionalMetaData

Optional additional meta-data set explicitly by the user.

This can be anything, but should be kept small.

ResourceMetaData

Meta-data that is inherited from the Resource object.