ManaPlus
Static Public Member Functions | Data Fields
WalkLayerLoader Struct Reference

Static Public Member Functions

static Resourceload (const void *const v)
 

Data Fields

const std::string name
 
const Map *const map
 

Detailed Description

Definition at line 37 of file walklayerloader.cpp.

Member Function Documentation

◆ load()

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

Definition at line 44 of file walklayerloader.cpp.

45  {
46  if (v == nullptr)
47  return nullptr;
48 
49  const WalkLayerLoader *const rl = static_cast<const
50  WalkLayerLoader *>(v);
51  Resource *const resource = NavigationManager::loadWalkLayer(rl->map);
52  if (resource == nullptr)
53  reportAlways("WalkLayer creation error")
54  return resource;
55  }
#define reportAlways(...)
Definition: checkutils.h:253
static Resource * loadWalkLayer(const Map *const map)
const Map *const map

References NavigationManager::loadWalkLayer(), map, and reportAlways.

Referenced by Loader::getWalkLayer().

Field Documentation

◆ map

const Map* const WalkLayerLoader::map

Definition at line 42 of file walklayerloader.cpp.

Referenced by load().

◆ name

const std::string WalkLayerLoader::name

Definition at line 41 of file walklayerloader.cpp.


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