8#ifndef GALAXY_MAP_WORLD_HPP_
9#define GALAXY_MAP_WORLD_HPP_
11#include <ankerl/unordered_dense.h>
12#include <LDtkLoader/Project.hpp>
82 const std::string&
name()
const;
90 const std::string&
file()
const;
106 ankerl::unordered_dense::map<std::string, map::Map>&
maps();
122 ankerl::unordered_dense::map<std::string, map::Map>
m_maps;
bool load(const std::string &file)
Load a world.
ldtk::Project m_project
LDTK project data.
const std::string & name() const
Get world name.
map::Map * m_current
Current map.
ankerl::unordered_dense::map< std::string, map::Map > & maps()
Get maps.
void set_active(const std::string &map)
Set currently active map.
ankerl::unordered_dense::map< std::string, map::Map > m_maps
List of ldtk levels.
bool loaded() const
Check if load() was called.
map::Map * get_active() const
Get currently active map.
void parse()
Parse world and create entities.
const std::string & file() const
Get file.
bool m_loaded
Loaded flag.
void clear()
Clear all map and world data.