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

Cache key that uniquely identifies a ResourceFactory by format, type, and version. More...

#include <ResourceLoader.h>

Public Member Functions

bool operator== (const ResourceFactoryKey &o) const
 

Public Attributes

uint32_t resourceFormat
 Format tag (RESOURCE_FORMAT_BINARY or RESOURCE_FORMAT_XML).
 
uint32_t resourceType
 Numeric resource type identifier (see ResourceType).
 
uint32_t resourceVersion
 Version of the resource format this factory handles.
 

Detailed Description

Cache key that uniquely identifies a ResourceFactory by format, type, and version.

The three-field key allows multiple factories to be registered for the same resource type (e.g. different binary versions or an XML variant of the same type).

Member Function Documentation

◆ operator==()

bool Ship::ResourceFactoryKey::operator== ( const ResourceFactoryKey o) const
inline

Member Data Documentation

◆ resourceFormat

uint32_t Ship::ResourceFactoryKey::resourceFormat

Format tag (RESOURCE_FORMAT_BINARY or RESOURCE_FORMAT_XML).

◆ resourceType

uint32_t Ship::ResourceFactoryKey::resourceType

Numeric resource type identifier (see ResourceType).

◆ resourceVersion

uint32_t Ship::ResourceFactoryKey::resourceVersion

Version of the resource format this factory handles.


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