#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 |
A reference to a resource.
Internally, the referenced resource is designed by its path in the resource tree.
void Stark::ResourceReference::loadFromStream | ( | Common::ReadStream * | stream | ) |
Read the reference from a stream
void Stark::ResourceReference::saveToStream | ( | Common::WriteStream * | stream | ) |
Write the reference to a stream
void Stark::ResourceReference::buildFromResource | ( | Resources::Object * | resource | ) |
Make the reference point to the specified object
T * Stark::ResourceReference::resolve | ( | ) | const |
Resolve the reference to the actual resource
bool Stark::ResourceReference::empty | ( | ) | const |
Return true if this reference is a null pointer
bool Stark::ResourceReference::canResolve | ( | ) | const |
Can this reference be resolved using currently loaded archives?