add SetUpdateRate method

This commit is contained in:
Chris Danford
2005-03-18 18:57:05 +00:00
parent 66a5c26a84
commit b497b33aa0
+5 -1
View File
@@ -12,6 +12,7 @@ public:
LunaActorFrame() { LUA->Register( Register ); }
static int propagate( T* p, lua_State *L ) { p->SetPropagateCommands( !!IArg(1) ); return 0; }
static int SetUpdateRate( T* p, lua_State *L ) { p->SetUpdateRate( FArg(1) ); return 0; }
static int GetChild( T* p, lua_State *L )
{
Actor *pChild = p->GetChild( SArg(1) );
@@ -25,6 +26,7 @@ public:
static void Register(lua_State *L)
{
ADD_METHOD( propagate )
ADD_METHOD( SetUpdateRate )
ADD_METHOD( GetChild )
LunaActor<T>::Register( L );
}
@@ -68,7 +70,9 @@ public:
virtual void SetZWrite( bool b );
virtual void FinishTweening();
virtual void HurryTweening( float factor );
void SetUpdateRate( float fUpdateRate ) { m_fUpdateRate = fUpdateRate; }
void SetPropagateCommands( bool b );
/* Amount of time until all tweens (and all children's tweens) have stopped: */