ScummVM API documentation
Stark::ResourceReference Class Reference

#include <resourcereference.h>

Public Member Functions

Common::String describe () const
 
void loadFromStream (Common::ReadStream *stream)
 
void saveToStream (Common::WriteStream *stream)
 
void buildFromResource (Resources::Object *resource)
 
template<class T >
T * resolve () const
 
bool empty () const
 
bool canResolve () const
 

Detailed Description

A reference to a resource.

Internally, the referenced resource is designed by its path in the resource tree.

Member Function Documentation

◆ loadFromStream()

void Stark::ResourceReference::loadFromStream ( Common::ReadStream stream)

Read the reference from a stream

◆ saveToStream()

void Stark::ResourceReference::saveToStream ( Common::WriteStream stream)

Write the reference to a stream

◆ buildFromResource()

void Stark::ResourceReference::buildFromResource ( Resources::Object resource)

Make the reference point to the specified object

◆ resolve()

template<class T >
T * Stark::ResourceReference::resolve ( ) const

Resolve the reference to the actual resource

◆ empty()

bool Stark::ResourceReference::empty ( ) const

Return true if this reference is a null pointer

◆ canResolve()

bool Stark::ResourceReference::canResolve ( ) const

Can this reference be resolved using currently loaded archives?


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