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


Detailed Description

Definition at line 18 of file ArtifactLoader.h.

Constructor & Destructor Documentation

◆ ArtifactLoader()

ArtifactLoader::ArtifactLoader ( AssetsTracker tracker)

Definition at line 21 of file ArtifactLoader.h.

Member Function Documentation

◆ load()

◆ willLoad()

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

Whether this instance will process or not the specified file.

filenamefull file path.
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

Definition at line 27 of file ArtifactLoader.h.

Referenced by load().

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