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


Detailed Description

Definition at line 22 of file PngLoader.h.

Constructor & Destructor Documentation

◆ PngLoader()

PngLoader::PngLoader ( Faces faces,
Facesets facesets 

Definition at line 24 of file PngLoader.cpp.

Member Function Documentation

◆ load()

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

Load assets from the specified reader. Must be implemented.

filenamefull filename.

Implements AssetLoader.

Definition at line 27 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, inja::string_view::split(), split_string(), and strdup_local.

+ Here is the call graph for this function:

◆ willLoad()

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

Definition at line 32 of file PngLoader.h.

Referenced by load().

◆ m_facesets

Facesets* PngLoader::m_facesets

Definition at line 33 of file PngLoader.h.

Referenced by load().

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