ScummVM API documentation
Ultima::Shared::LocalResourceFile Class Reference

#include <resources.h>

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

Public Member Functions

void save ()
 
- Public Member Functions inherited from Ultima::Shared::ResourceFile
void load ()
 

Protected Member Functions

 LocalResourceFile (const Common::Path &filename)
 
 LocalResourceFile (Resources *owner, const Common::Path &filename)
 
bool isSaving () const
 
void syncString (const char *&str) override
 
void syncStrings (const char **str, size_t count) override
 
void syncStrings2D (const char **str, size_t count1, size_t count2) override
 
void syncNumber (int &val) override
 
void syncNumbers (int *vals, size_t count) override
 
void syncNumbers2D (int *vals, size_t count1, size_t count2) override
 
void syncNumbers3D (int *vals, size_t count1, size_t count2, size_t count3) override
 
void syncBytes (byte *vals, size_t count) override
 
void syncBytes2D (byte *vals, size_t count1, size_t count2) override
 
- Protected Member Functions inherited from Ultima::Shared::ResourceFile
 ResourceFile (const Common::Path &filename)
 
virtual ~ResourceFile ()
 
virtual void synchronize ()=0
 

Additional Inherited Members

- Protected Attributes inherited from Ultima::Shared::ResourceFile
Common::Path _filename
 

Detailed Description

Derived base class for resources that have their contents within the executable rather than a data file. This will allow the data for a particular Ultima game to be gradually built up without repeatedly regenerating a data file. Once a game has been properly tested, then it can be moved out.

Constructor & Destructor Documentation

◆ LocalResourceFile() [1/2]

Ultima::Shared::LocalResourceFile::LocalResourceFile ( const Common::Path filename)
inlineprotected

Constructor

◆ LocalResourceFile() [2/2]

Ultima::Shared::LocalResourceFile::LocalResourceFile ( Resources owner,
const Common::Path filename 
)
inlineprotected

Constructor

Member Function Documentation

◆ isSaving()

bool Ultima::Shared::LocalResourceFile::isSaving ( ) const
inlineprotected

Return true if in saving mode

◆ save()

void Ultima::Shared::LocalResourceFile::save ( )

Write out the resource to the in-memory resource store


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