8#include "galaxy/core/ServiceLocator.hpp" 
   43                auto& fs   = core::ServiceLocator<fs::VirtualFileSystem>::ref();
 
   44                auto  data = fs.read_binary(
file);
 
   50                        m_project.loadFromMemory(data.data(), data.size());
 
   53                    catch (
const std::exception& e)
 
 
   67                GALAXY_LOG(GALAXY_WARNING, 
"Galaxy does not support LDTK multi-worlds.");
 
   70            for (
auto& level : 
m_project.getWorld().allLevels())
 
   72                auto& map = 
m_maps[level.name];
 
 
   93                GALAXY_LOG(GALAXY_WARNING, 
"Map '{0}' does not exist.", map);
 
 
  117        ankerl::unordered_dense::map<std::string, map::Map>& 
World::maps()
 
 
#define GALAXY_LOG(level, msg,...)
 
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.