diff options
Diffstat (limited to 'pokescripting/MapWrapper.cpp')
| -rw-r--r-- | pokescripting/MapWrapper.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pokescripting/MapWrapper.cpp b/pokescripting/MapWrapper.cpp index 9564a995..ebd37ceb 100644 --- a/pokescripting/MapWrapper.cpp +++ b/pokescripting/MapWrapper.cpp @@ -58,6 +58,17 @@ Pokescripting::MapWildListWrapper* Pokescripting::MapWrapper::wildList(const int return MapWildListWrapper::create(m_map->wildListById(id), this); } +Pokemod::Map::Type Pokescripting::MapWrapper::type(const QString& name) const +{ + if (name == "Outdoor") + return Pokemod::Map::Outdoor; + else if (name == "Dungeon") + return Pokemod::Map::Dungeon; + else if (name == "Building") + return Pokemod::Map::Building; + return QVariant(-1).value<Pokemod::Map::Type>(); +} + QString Pokescripting::MapWrapper::name() const { return m_map->name(); |
