libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Ship::ResourceInitData Struct Reference

Metadata that describes how a resource was (or should be) loaded. More...

#include <File.h>

Collaboration diagram for Ship::ResourceInitData:
[legend]

Public Attributes

ResourceIdentifier Identifier
 Cache/resource identity used for loading and ownership scoping.
 
Endianness ByteOrder
 Byte order of the raw data.
 
uint32_t Type
 Resource type identifier (see ResourceType).
 
int32_t ResourceVersion
 Version of the resource format within its type family.
 
uint64_t Id
 Content-hash / unique identifier for this resource.
 
bool IsCustom
 True when this resource originated from an "alt assets" override path.
 
uint32_t Format
 Binary or XML format tag (RESOURCE_FORMAT_BINARY / RESOURCE_FORMAT_XML).
 

Detailed Description

Metadata that describes how a resource was (or should be) loaded.

ResourceInitData is populated by ResourceLoader during the header-parsing phase and is subsequently attached to every IResource instance. It is also used to supply override metadata when loading a resource with non-default options.

Member Data Documentation

◆ ByteOrder

Endianness Ship::ResourceInitData::ByteOrder

Byte order of the raw data.

◆ Format

uint32_t Ship::ResourceInitData::Format

Binary or XML format tag (RESOURCE_FORMAT_BINARY / RESOURCE_FORMAT_XML).

◆ Id

uint64_t Ship::ResourceInitData::Id

Content-hash / unique identifier for this resource.

◆ Identifier

ResourceIdentifier Ship::ResourceInitData::Identifier

Cache/resource identity used for loading and ownership scoping.

◆ IsCustom

bool Ship::ResourceInitData::IsCustom

True when this resource originated from an "alt assets" override path.

◆ ResourceVersion

int32_t Ship::ResourceInitData::ResourceVersion

Version of the resource format within its type family.

◆ Type

uint32_t Ship::ResourceInitData::Type

Resource type identifier (see ResourceType).


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