diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-08-26 19:03:35 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-08-26 19:03:35 +0000 |
| commit | 31601349dff4b78a03bda0912d8d79b43eae42b0 (patch) | |
| tree | d81b20394a8b2a13728c22cf5e75ae77e747144d /pokescripting/SoundWrapper.h | |
| parent | 940e5d4b55bbd1261bf0ccb3a915b79cf2a240c8 (diff) | |
| download | sigen-31601349dff4b78a03bda0912d8d79b43eae42b0.tar.gz sigen-31601349dff4b78a03bda0912d8d79b43eae42b0.tar.xz sigen-31601349dff4b78a03bda0912d8d79b43eae42b0.zip | |
[FIX] Enumerations now have access from scripts (name->value)
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@245 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokescripting/SoundWrapper.h')
| -rw-r--r-- | pokescripting/SoundWrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pokescripting/SoundWrapper.h b/pokescripting/SoundWrapper.h index bb57c1c7..b6209d96 100644 --- a/pokescripting/SoundWrapper.h +++ b/pokescripting/SoundWrapper.h @@ -39,6 +39,8 @@ class POKESCRIPTING_EXPORT SoundWrapper : public ObjectWrapper public: static SoundWrapper* create(const Pokemod::Sound* sound, PokemodWrapper* parent); + Q_SCRIPTABLE Pokemod::Sound::Type type(const QString& name) const; + Q_SCRIPTABLE QString name() const; Q_SCRIPTABLE Pokemod::Sound::Type type() const; Q_SCRIPTABLE Phonon::MediaObject* data(); |
