Crossfire Server, Trunk
AssetLoader Class Referenceabstract

#include <AssetLoader.h>

+ Inheritance diagram for AssetLoader:
+ Collaboration diagram for AssetLoader:

Public Member Functions

virtual void load (BufferReader *reader, const std::string &filename)=0
 
virtual bool willLoad (const std::string &filename)=0
 
virtual ~AssetLoader ()
 

Detailed Description

Abstract buffer handler, processing a BufferReader. Inherited classes must implement load() and willLoad().

Definition at line 24 of file AssetLoader.h.

Constructor & Destructor Documentation

◆ ~AssetLoader()

virtual AssetLoader::~AssetLoader ( )
inlinevirtual

Virtual destructor for inheritance.

Definition at line 28 of file AssetLoader.h.

Member Function Documentation

◆ load()

virtual void AssetLoader::load ( BufferReader reader,
const std::string &  filename 
)
pure virtual

Load assets from the specified reader.

Parameters
readerreader.
filenamefull filename.

Implemented in AssetCollector, WrapperLoader, QuestLoader, TreasureLoader, FaceLoader, ArchetypeLoader, MessageLoader, PngLoader, FacesetLoader, ArtifactLoader, and TarLoader.

Referenced by TarLoader::load(), and write_load().

+ Here is the caller graph for this function:

◆ willLoad()

virtual bool AssetLoader::willLoad ( const std::string &  filename)
pure virtual

Whether this instance will process or not the specified file.

Parameters
filenamefull file path.
Returns
true if processFile() should be called, false else.

Implemented in WrapperLoader, QuestLoader, TreasureLoader, FaceLoader, ArchetypeLoader, MessageLoader, PngLoader, FacesetLoader, ArtifactLoader, TarLoader, and AssetCollector.

Referenced by TarLoader::load().

+ Here is the caller graph for this function:

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