libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Fast::ResourceFactoryXMLDisplayListV0 Class Referencefinal

#include <DisplayListFactory.h>

Inheritance diagram for Fast::ResourceFactoryXMLDisplayListV0:
[legend]
Collaboration diagram for Fast::ResourceFactoryXMLDisplayListV0:
[legend]

Public Member Functions

std::shared_ptr< Ship::IResourceReadResource (std::shared_ptr< Ship::File > file, std::shared_ptr< Ship::ResourceInitData > initData) override
 Deserializes a File into an IResource.
 

Additional Inherited Members

- Protected Member Functions inherited from Fast::ResourceFactoryDisplayList
uint32_t GetCombineLERPValue (const char *valStr)
 
- Protected Member Functions inherited from Ship::ResourceFactoryXML
bool FileHasValidFormatAndReader (std::shared_ptr< File > file, std::shared_ptr< Ship::ResourceInitData > initData) override
 Validates that the file uses the XML format and contains an XMLDocument.
 

Member Function Documentation

◆ ReadResource()

std::shared_ptr< Ship::IResource > Fast::ResourceFactoryXMLDisplayListV0::ReadResource ( std::shared_ptr< Ship::File file,
std::shared_ptr< Ship::ResourceInitData initData 
)
overridevirtual

Deserializes a File into an IResource.

Called by ResourceLoader after it has selected this factory as the best match for the file's (format, type, version) triple.

Parameters
fileRaw file data with a populated Reader (BinaryReader or XMLDocument).
initDataMetadata parsed from the file header.
Returns
Fully constructed IResource, or nullptr if deserialization failed.

Implements Ship::ResourceFactory.


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