supertux
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Addon Class Referencefinal

Public Types

enum  Type {
  WORLD, WORLDMAP, LEVELSET, LANGUAGEPACK,
  RESOURCEPACK, ADDON
}
 
enum  Format { ORIGINAL = 0, WITH_MOUNTPOINT = 1 }
 

Public Member Functions

const std::string & get_id () const
 
int get_version () const
 
int get_format () const
 
Type get_type () const
 
const std::string & get_title () const
 
const std::string & get_author () const
 
const std::string & get_license () const
 
const std::string & get_description () const
 
const std::string & get_url () const
 
const std::string & get_md5 () const
 
const std::vector< std::string > & get_screenshots () const
 
const std::vector< std::string > & get_dependencies () const
 
std::string get_filename () const
 
const std::string & get_install_filename () const
 
bool is_installed () const
 
bool is_enabled () const
 
bool is_visible () const
 
bool is_levelset () const
 
bool overrides_data () const
 
bool requires_restart () const
 
void set_install_filename (const std::string &absolute_filename, const std::string &md5)
 
void set_enabled (bool v)
 

Static Public Member Functions

static std::unique_ptr< Addonparse (const ReaderMapping &mapping)
 
static std::unique_ptr< Addonparse (const std::string &fname)
 

The documentation for this class was generated from the following files: