diff options
Diffstat (limited to 'sigscript/CoinListWrapper.cpp')
| -rw-r--r-- | sigscript/CoinListWrapper.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sigscript/CoinListWrapper.cpp b/sigscript/CoinListWrapper.cpp index f2ee2cc2..4125da6f 100644 --- a/sigscript/CoinListWrapper.cpp +++ b/sigscript/CoinListWrapper.cpp @@ -25,7 +25,11 @@ // Sigmod includes #include <sigmod/CoinList.h> -Sigscript::CoinListWrapper* Sigscript::CoinListWrapper::create(const Sigmod::CoinList* coinList, GameWrapper* parent) +using namespace Sigcore; +using namespace Sigmod; +using namespace Sigscript; + +CoinListWrapper* CoinListWrapper::create(const CoinList* coinList, GameWrapper* parent) { Signature sig = Signature(parent, Subsignature(coinList->className(), coinList->id())); if (!m_instances.contains(sig)) @@ -33,28 +37,28 @@ Sigscript::CoinListWrapper* Sigscript::CoinListWrapper::create(const Sigmod::Coi return qobject_cast<CoinListWrapper*>(m_instances[sig]); } -Sigscript::CoinListWrapper::CoinListWrapper(const Sigmod::CoinList* coinList, GameWrapper* parent) : +CoinListWrapper::CoinListWrapper(const CoinList* coinList, GameWrapper* parent) : ObjectWrapper(coinList, parent), m_coinList(coinList) { } -QString Sigscript::CoinListWrapper::name() const +QString CoinListWrapper::name() const { return m_coinList->name(); } -Sigcore::Script Sigscript::CoinListWrapper::script() const +Script CoinListWrapper::script() const { return m_coinList->script(); } -Sigscript::CoinListItemWrapper* Sigscript::CoinListWrapper::item(const int index) +CoinListItemWrapper* CoinListWrapper::item(const int index) { return CoinListItemWrapper::create(m_coinList->item(index), this); } -int Sigscript::CoinListWrapper::itemCount() const +int CoinListWrapper::itemCount() const { return m_coinList->itemCount(); } |
