Crossfire Server, Trunk
FacesetLoader Class Reference

#include <FacesetLoader.h>

+ Inheritance diagram for FacesetLoader:
+ Collaboration diagram for FacesetLoader:

Public Member Functions

 FacesetLoader (Facesets *facesets)
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 21 of file FacesetLoader.h.

Constructor & Destructor Documentation

◆ FacesetLoader()

FacesetLoader::FacesetLoader ( Facesets facesets)

Definition at line 20 of file FacesetLoader.cpp.

Member Function Documentation

◆ load()

void FacesetLoader::load ( BufferReader reader,
const std::string &  filename 

Load assets from the specified reader.

filenamefull filename.

Implements AssetLoader.

Definition at line 23 of file FacesetLoader.cpp.

References buf, bufferreader_next_line(), face_sets::comment, AssetsCollection< T, Key >::define(), face_sets::extension, face_sets::fallback, npc_dialog::filename, face_sets::fullname, AssetsCollection< T, Key >::get(), llevError, LOG(), m_facesets, face_sets::prefix, face_sets::size, split_string(), and strdup_local.

+ Here is the call graph for this function:

◆ willLoad()

virtual bool FacesetLoader::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 25 of file FacesetLoader.h.

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

+ Here is the call graph for this function:

Field Documentation

◆ m_facesets

Facesets* FacesetLoader::m_facesets

Definition at line 32 of file FacesetLoader.h.

Referenced by load().

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