Crossfire Server, Trunk
ArtifactLoader Class Reference

#include <ArtifactLoader.h>

+ Inheritance diagram for ArtifactLoader:
+ Collaboration diagram for ArtifactLoader:

Public Member Functions

 ArtifactLoader (AssetsTracker *tracker)
 
virtual void load (BufferReader *reader, const std::string &filename) override
 
virtual bool willLoad (const std::string &filename) override
 
- Public Member Functions inherited from AssetLoader
virtual ~AssetLoader ()
 

Private Attributes

AssetsTrackermyTracker
 

Detailed Description

Definition at line 18 of file ArtifactLoader.h.

Constructor & Destructor Documentation

◆ ArtifactLoader()

ArtifactLoader::ArtifactLoader ( AssetsTracker tracker)
inline

Definition at line 21 of file ArtifactLoader.h.

Member Function Documentation

◆ load()

◆ willLoad()

bool ArtifactLoader::willLoad ( const std::string &  filename)
overridevirtual

Whether this instance will process or not the specified file.

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

Implements AssetLoader.

Definition at line 18 of file ArtifactLoader.cpp.

References Utils::endsWith(), and npc_dialog::filename.

+ Here is the call graph for this function:

Field Documentation

◆ myTracker

AssetsTracker* ArtifactLoader::myTracker
private

Definition at line 27 of file ArtifactLoader.h.

Referenced by load().


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