ManaPlus
Static Public Member Functions | Data Fields
EmptyAtlasLoader Struct Reference

Static Public Member Functions

static Resourceload (const void *const v)
 

Data Fields

const std::string name
 
const StringVect *const files
 

Detailed Description

Definition at line 35 of file emptyatlasloader.cpp.

Member Function Documentation

◆ load()

static Resource* EmptyAtlasLoader::load ( const void *const  v)
inlinestatic

Definition at line 42 of file emptyatlasloader.cpp.

43  {
44  if (v == nullptr)
45  return nullptr;
46 
47  const EmptyAtlasLoader *const rl =
48  static_cast<const EmptyAtlasLoader *>(v);
50  rl->name, *rl->files);
51  if (resource == nullptr)
52  reportAlways("Empty atlas creation error: %s", rl->name.c_str())
53  return resource;
54  }
#define reportAlways(...)
Definition: checkutils.h:253
static AtlasResource * loadEmptyAtlas(const std::string &name, const StringVect &files)
const StringVect *const files
const std::string name

References files, AtlasManager::loadEmptyAtlas(), name, and reportAlways.

Referenced by Loader::getEmptyAtlas().

Field Documentation

◆ files

const StringVect* const EmptyAtlasLoader::files

Definition at line 40 of file emptyatlasloader.cpp.

Referenced by load().

◆ name

const std::string EmptyAtlasLoader::name

Definition at line 39 of file emptyatlasloader.cpp.

Referenced by load().


The documentation for this struct was generated from the following file: