 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
13 #ifndef WRAPPERLOADER_H
14 #define WRAPPERLOADER_H
36 virtual bool willLoad(
const std::string &filename)
override {
Abstract buffer handler, processing a BufferReader.
Plugin animator file specs[Config] name
wrapped m_function
Function to call.
std::function< void(BufferReader *, const char *)> wrapped
Wrapper to the function to call for each file.
WrapperLoader(const std::string &name, wrapped fct)
Standard construction.
virtual void load(BufferReader *reader, const std::string &filename) override
Load assets from the specified reader.
std::string m_name
File name.
virtual bool willLoad(const std::string &filename) override
Whether this instance will process or not the specified file.
Loader calling a function for files ending with a specific string.
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.