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 );
}
};