ManaPlus
Static Public Member Functions | Data Fields
anonymous_namespace{spritedefloader.cpp}::SpriteDefLoader Struct Reference

Static Public Member Functions

static Resourceload (const void *const v)
 

Data Fields

const std::string path
 
const int variant
 

Detailed Description

Definition at line 38 of file spritedefloader.cpp.

Member Function Documentation

◆ load()

static Resource* anonymous_namespace{spritedefloader.cpp}::SpriteDefLoader::load ( const void *const  v)
inlinestatic

Definition at line 44 of file spritedefloader.cpp.

45  {
46  if (v == nullptr)
47  return nullptr;
48 
49  const SpriteDefLoader *const
50  rl = static_cast<const SpriteDefLoader *>(v);
51  return SpriteDef::load(rl->path,
52  rl->variant,
54  }
bool uselonglivesprites
Definition: settings.h:163
static SpriteDef * load(const std::string &file, const int variant, const bool prot)
Definition: spritedef.cpp:90
Settings settings
Definition: settings.cpp:32

References SpriteDef::load(), path, settings, Settings::uselonglivesprites, and variant.

Field Documentation

◆ path

const std::string anonymous_namespace{spritedefloader.cpp}::SpriteDefLoader::path

Definition at line 42 of file spritedefloader.cpp.

Referenced by load().

◆ variant

const int anonymous_namespace{spritedefloader.cpp}::SpriteDefLoader::variant

Definition at line 43 of file spritedefloader.cpp.

Referenced by load().


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