From f47cb7f5268d09a1c64a1ec7dc12ff09e9426b48 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 12 Jul 2005 21:44:30 +0000 Subject: [PATCH] bind GetName --- stepmania/src/Actor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 98bc3b2edb..57d54bfbf5 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -1214,6 +1214,7 @@ public: static int GetSecsIntoEffect( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSecsIntoEffect() ); return 1; } static int GetEffectDelta( T* p, lua_State *L ) { lua_pushnumber( L, p->GetEffectDelta() ); return 1; } + static int GetName( T* p, lua_State *L ) { lua_pushstring( L, p->GetName() ); return 1; } static void Register(lua_State *L) { ADD_METHOD( sleep ) @@ -1338,6 +1339,8 @@ public: ADD_METHOD( GetSecsIntoEffect ) ADD_METHOD( GetEffectDelta ) + ADD_METHOD( GetName ) + Luna::Register( L ); } };