ScummVM API documentation
Sword25::ResourceService Class Referenceabstract
Inheritance diagram for Sword25::ResourceService:
Sword25::Service Sword25::GraphicEngine Sword25::SoundEngine

Public Member Functions

 ResourceService (Kernel *pKernel)
 
virtual ResourceloadResource (const Common::String &fileName)=0
 
virtual bool canLoadResource (const Common::String &fileName)=0
 

Additional Inherited Members

- Protected Member Functions inherited from Sword25::Service
 Service (Kernel *pKernel)
 
KernelGetKernel () const
 

Member Function Documentation

◆ loadResource()

virtual Resource* Sword25::ResourceService::loadResource ( const Common::String fileName)
pure virtual

Loads a resource

Returns
Returns the resource if successful, otherwise NULL

Implemented in Sword25::GraphicEngine, and Sword25::SoundEngine.

◆ canLoadResource()

virtual bool Sword25::ResourceService::canLoadResource ( const Common::String fileName)
pure virtual

Checks whether the given name can be loaded by the resource service

Parameters
FileNameDateiname
Returns
Returns true if the resource can be loaded.

Implemented in Sword25::GraphicEngine, and Sword25::SoundEngine.


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