From cf49a16b29ac412cfea125f7216a0e51e79aa4de Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 5 Aug 2008 06:10:55 +0000 Subject: [FIX] List members of pokemod classes now can be returned in their entirety [FIX] Reworked pokescripting for ease of use [FIX] Now (selected) pokemod values can be overridden in pokescripting git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@237 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokescripting/CoinListWrapper.h | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'pokescripting/CoinListWrapper.h') diff --git a/pokescripting/CoinListWrapper.h b/pokescripting/CoinListWrapper.h index a224545a..9b9bc63e 100644 --- a/pokescripting/CoinListWrapper.h +++ b/pokescripting/CoinListWrapper.h @@ -40,6 +40,7 @@ class POKESCRIPTING_EXPORT CoinListWrapper : public ObjectWrapper } public slots: QString name() const; + Pokemod::Script script() const; CoinListObjectWrapper* object(const int index); int objectCount() const; @@ -49,28 +50,6 @@ class POKESCRIPTING_EXPORT CoinListWrapper : public ObjectWrapper const Pokemod::CoinList* m_coinList; }; - -inline CoinListWrapper::CoinListWrapper(const Pokemod::CoinList* coinList, QObject* parent) : - ObjectWrapper(coinList, parent), - m_coinList(coinList) -{ -} - -inline QString CoinListWrapper::name() const -{ - return m_coinList->name(); -} - -inline CoinListObjectWrapper* CoinListWrapper::object(const int index) -{ - return CoinListObjectWrapper::create(m_coinList->object(index), this); -} - -inline int CoinListWrapper::objectCount() const -{ - return m_coinList->objectCount(); -} - } #endif -- cgit