Crossfire Server, Trunk
PngLoader Class Reference

#include <PngLoader.h>

+ Inheritance diagram for PngLoader:
+ Collaboration diagram for PngLoader:

Public Member Functions

virtual void load (BufferReader *reader, const std::string &filename) override
 
 PngLoader (Faces *faces, Facesets *facesets)
 
virtual bool willLoad (const std::string &filename) override
 
- Public Member Functions inherited from AssetLoader
virtual ~AssetLoader ()
 

Protected Attributes

Facesm_faces
 
Facesetsm_facesets
 

Detailed Description

Definition at line 22 of file PngLoader.h.

Constructor & Destructor Documentation

◆ PngLoader()

PngLoader::PngLoader ( Faces faces,
Facesets facesets 
)

Definition at line 22 of file PngLoader.cpp.

Member Function Documentation

◆ load()

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

Load assets from the specified reader.

Parameters
readerreader.
filenamefull filename.

Implements AssetLoader.

Definition at line 25 of file PngLoader.cpp.

References face_sets::allocated, buf, bufferreader_data(), bufferreader_data_length(), face_info::checksum, disinfect::count, face_info::data, face_info::datalen, face_sets::faces, fatal(), npc_dialog::filename, AssetsCollection< T, Key >::get(), llevDebug, LOG(), m_faces, m_facesets, Face::name, Face::number, OUT_OF_MEMORY, ROTATE_RIGHT, split(), split_string(), and strdup_local.

+ Here is the call graph for this function:

◆ willLoad()

virtual bool PngLoader::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 PngLoader.h.

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

+ Here is the call graph for this function:

Field Documentation

◆ m_faces

Faces* PngLoader::m_faces
protected

Definition at line 32 of file PngLoader.h.

Referenced by load().

◆ m_facesets

Facesets* PngLoader::m_facesets
protected

Definition at line 33 of file PngLoader.h.

Referenced by load().


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