Skip to content

Commit

Permalink
Add 'path' object support to WorldMapParser
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Dec 16, 2018
1 parent fbfc91d commit d0af0eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/worldmap/worldmap_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "object/background.hpp"
#include "object/decal.hpp"
#include "object/music_object.hpp"
#include "object/path_gameobject.hpp"
#include "object/tilemap.hpp"
#include "physfs/physfs_file_system.hpp"
#include "supertux/tile_manager.hpp"
Expand Down Expand Up @@ -114,6 +115,8 @@ WorldMapParser::load_worldmap(const std::string& filename)
m_worldmap.add<Teleporter>(iter.as_mapping());
} else if (iter.get_key() == "decal") {
m_worldmap.add<Decal>(iter.as_mapping());
} else if (iter.get_key() == "path") {
m_worldmap.add<PathGameObject>(iter.as_mapping());
} else if (iter.get_key() == "ambient-light") {
const auto& sx = iter.get_sexp();
if (sx.is_array() && sx.as_array().size() >= 3 &&
Expand Down

0 comments on commit d0af0eb

Please sign in to comment.