summaryrefslogtreecommitdiffstats
path: root/sigscript/StoreWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/StoreWrapper.cpp')
-rw-r--r--sigscript/StoreWrapper.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/sigscript/StoreWrapper.cpp b/sigscript/StoreWrapper.cpp
index 6d39513e..c5c28bd5 100644
--- a/sigscript/StoreWrapper.cpp
+++ b/sigscript/StoreWrapper.cpp
@@ -24,7 +24,10 @@
// Sigmod includes
#include <sigmod/Store.h>
-Sigscript::StoreWrapper* Sigscript::StoreWrapper::create(const Sigmod::Store* store, GameWrapper* parent)
+using namespace Sigmod;
+using namespace Sigscript;
+
+StoreWrapper* StoreWrapper::create(const Store* store, GameWrapper* parent)
{
Signature sig = Signature(parent, Subsignature(store->className(), store->id()));
if (!m_instances.contains(sig))
@@ -32,18 +35,18 @@ Sigscript::StoreWrapper* Sigscript::StoreWrapper::create(const Sigmod::Store* st
return qobject_cast<StoreWrapper*>(m_instances[sig]);
}
-Sigscript::StoreWrapper::StoreWrapper(const Sigmod::Store* store, GameWrapper* parent) :
+StoreWrapper::StoreWrapper(const Store* store, GameWrapper* parent) :
ObjectWrapper(store, parent),
m_store(store)
{
}
-QString Sigscript::StoreWrapper::name() const
+QString StoreWrapper::name() const
{
return m_store->name();
}
-QList<Sigscript::ItemWrapper*> Sigscript::StoreWrapper::items()
+QList<ItemWrapper*> StoreWrapper::items()
{
QList<int> itemIds = m_store->item();
QList<ItemWrapper*> items;