give access to the sound

This commit is contained in:
Glenn Maynard
2006-12-04 22:32:24 +00:00
parent edcc1c2f40
commit 19c8a993d0
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -35,11 +35,13 @@ class LunaActorSound: public Luna<ActorSound>
public:
static int load( T* p, lua_State *L ) { p->Load(SArg(1)); return 0; }
static int play( T* p, lua_State *L ) { p->Play(); return 0; }
static int get( T* p, lua_State *L ) { p->PushSound( L ); return 1; }
LunaActorSound()
{
ADD_METHOD( load );
ADD_METHOD( play );
ADD_METHOD( get );
}
};
+1
View File
@@ -15,6 +15,7 @@ public:
void Load( const RString &sPath );
void Play();
void LoadFromNode( const XNode* pNode );
void PushSound( lua_State *L ) { m_Sound.PushSelf( L ); }
//
// Lua