summaryrefslogtreecommitdiffstats
path: root/sigscript
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-29 16:43:56 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-29 16:43:56 -0400
commit1770e2893ab6b7767e1b7180fd2c049c74ab6293 (patch)
tree2ae55f6365e950407131dbb1efdb6af3dcf8156b /sigscript
parent3ce66c611c72184c01181f493d161c6118e7204a (diff)
downloadsigen-1770e2893ab6b7767e1b7180fd2c049c74ab6293.tar.gz
sigen-1770e2893ab6b7767e1b7180fd2c049c74ab6293.tar.xz
sigen-1770e2893ab6b7767e1b7180fd2c049c74ab6293.zip
Maps don't have a type anymore
Diffstat (limited to 'sigscript')
-rw-r--r--sigscript/MapWrapper.cpp16
-rw-r--r--sigscript/MapWrapper.h3
2 files changed, 0 insertions, 19 deletions
diff --git a/sigscript/MapWrapper.cpp b/sigscript/MapWrapper.cpp
index a016f635..beca24cb 100644
--- a/sigscript/MapWrapper.cpp
+++ b/sigscript/MapWrapper.cpp
@@ -73,27 +73,11 @@ MapWildListWrapper* MapWrapper::wildList(const int id)
return MapWildListWrapper::create(m_map->wildListById(id), this);
}
-Map::Type MapWrapper::type(const QString& name) const
-{
- if (name == "Outdoor")
- return Map::Outdoor;
- else if (name == "Dungeon")
- return Map::Dungeon;
- else if (name == "Building")
- return Map::Building;
- return QVariant(-1).value<Map::Type>();
-}
-
QString MapWrapper::name() const
{
return m_map->name();
}
-Map::Type MapWrapper::type() const
-{
- return m_map->type();
-}
-
int MapWrapper::width() const
{
return m_map->width();
diff --git a/sigscript/MapWrapper.h b/sigscript/MapWrapper.h
index a3b7d172..fb3fe38f 100644
--- a/sigscript/MapWrapper.h
+++ b/sigscript/MapWrapper.h
@@ -47,10 +47,7 @@ class SIGSCRIPT_EXPORT MapWrapper : public ObjectWrapper
MapWarpWrapper* warp(const int id);
MapWildListWrapper* wildList(const int id);
- Q_SCRIPTABLE Sigmod::Map::Type type(const QString& name) const;
-
Q_SCRIPTABLE QString name() const;
- Q_SCRIPTABLE Sigmod::Map::Type type() const;
Q_SCRIPTABLE int width() const;
Q_SCRIPTABLE int height() const;