[Sprite] Added SetSecondsIntoAnimation(float) Lua binding.

This commit is contained in:
AJ Kelly
2011-05-10 02:41:02 -05:00
parent aeb1f5e816
commit 4afa85c9f9
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -1130,6 +1130,7 @@ public:
static int setstate( T* p, lua_State *L ) { p->SetState( IArg(1) ); return 0; }
static int GetState( T* p, lua_State *L ) { lua_pushnumber( L, p->GetState() ); return 1; }
static int GetAnimationLengthSeconds( T* p, lua_State *L ) { lua_pushnumber( L, p->GetAnimationLengthSeconds() ); return 1; }
static int SetSecondsIntoAnimation( T* p, lua_State *L ) { p->SetSecondsIntoAnimation(FArg(0)) return 0; }
static int SetTexture( T* p, lua_State *L )
{
RageTexture *pTexture = Luna<RageTexture>::check(L, 1);
@@ -1170,6 +1171,7 @@ public:
ADD_METHOD( setstate );
ADD_METHOD( GetState );
ADD_METHOD( GetAnimationLengthSeconds );
ADD_METHOD( SetSecondsIntoAnimation );
ADD_METHOD( SetTexture );
ADD_METHOD( GetTexture );
ADD_METHOD( SetEffectMode );