27 virtual bool willLoad(
const std::string &filename)
override {
31 virtual void load(
BufferReader *reader,
const std::string &filename)
override;
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.
virtual void load(BufferReader *reader, const std::string &filename) override
Load assets from the specified reader.
AssetsTracker * m_tracker
Base class to be informed of where an asset is defined.
FaceLoader(Faces *faces, AllAnimations *animations, AssetsTracker *tracker)
AllAnimations * m_animations
void loadAnimationBlock(BufferReader *reader, const std::string &full_path, const char *animation_name)
virtual bool willLoad(const std::string &filename) override
Whether this instance will process or not the specified file.
Abstract buffer handler, processing a BufferReader.