Crossfire Server, Trunk  1.75.0
ArchetypeLoader Class Reference

#include <ArchetypeLoader.h>

+ Inheritance diagram for ArchetypeLoader:
+ Collaboration diagram for ArchetypeLoader:

Public Member Functions

 ArchetypeLoader (Archetypes *archetypes, AssetsTracker *tracker)
 
virtual void load (BufferReader *reader, const std::string &filename) override
 Load assets from the specified reader. More...
 
virtual bool willLoad (const std::string &filename) override
 Whether this instance will process or not the specified file. More...
 
- Public Member Functions inherited from AssetLoader
virtual ~AssetLoader ()
 Virtual destructor for inheritance. More...
 

Private Attributes

Archetypesm_archetypes
 
AssetsTrackerm_tracker
 

Detailed Description

Definition at line 22 of file ArchetypeLoader.h.

Constructor & Destructor Documentation

◆ ArchetypeLoader()

ArchetypeLoader::ArchetypeLoader ( Archetypes archetypes,
AssetsTracker tracker 
)

Definition at line 20 of file ArchetypeLoader.cpp.

Member Function Documentation

◆ load()

void ArchetypeLoader::load ( BufferReader reader,
const std::string &  filename 
)
overridevirtual

◆ willLoad()

virtual bool ArchetypeLoader::willLoad ( const std::string &  filename)
inlineoverridevirtual

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 26 of file ArchetypeLoader.h.

References Utils::endsWith().

+ Here is the call graph for this function:

Field Documentation

◆ m_archetypes

Archetypes* ArchetypeLoader::m_archetypes
private

Definition at line 33 of file ArchetypeLoader.h.

Referenced by load().

◆ m_tracker

AssetsTracker* ArchetypeLoader::m_tracker
private

Definition at line 34 of file ArchetypeLoader.h.

Referenced by load().


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