ScummVM API documentation
Ultima::Shared::ResourceFile Class Referenceabstract

#include <resources.h>

Inheritance diagram for Ultima::Shared::ResourceFile:
Ultima::Shared::LocalResourceFile Ultima::Shared::FontResources Ultima::Ultima0::Resources Ultima::Ultima0::Resources Ultima::Ultima1::GameResources

Public Member Functions

void load ()
 

Protected Member Functions

 ResourceFile (const Common::Path &filename)
 
virtual ~ResourceFile ()
 
virtual void synchronize ()=0
 
virtual void syncString (const char *&str)
 
virtual void syncStrings (const char **str, size_t count)
 
virtual void syncStrings2D (const char **str, size_t count1, size_t count2)
 
virtual void syncNumber (int &val)
 
virtual void syncNumbers (int *vals, size_t count)
 
virtual void syncNumbers2D (int *vals, size_t count1, size_t count2)
 
virtual void syncNumbers3D (int *vals, size_t count1, size_t count2, size_t count3)
 
virtual void syncBytes (byte *vals, size_t count)
 
virtual void syncBytes2D (byte *vals, size_t count1, size_t count2)
 

Protected Attributes

Common::Path _filename
 

Detailed Description

Base class for classes that exposes a set of strings, arrays, and other data from a resource

Constructor & Destructor Documentation

◆ ResourceFile()

Ultima::Shared::ResourceFile::ResourceFile ( const Common::Path filename)
protected

Constructor

◆ ~ResourceFile()

virtual Ultima::Shared::ResourceFile::~ResourceFile ( )
inlineprotectedvirtual

Destructor

Member Function Documentation

◆ synchronize()

virtual void Ultima::Shared::ResourceFile::synchronize ( )
protectedpure virtual

Synchronizes the data for the resource

Implemented in Ultima::Shared::FontResources, and Ultima::Ultima1::GameResources.

◆ load()

void Ultima::Shared::ResourceFile::load ( )

Loads in a resource


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