Function chaining for actors and singletons.

This commit is contained in:
Kyzentun
2014-12-01 22:31:30 -07:00
parent 3b36858cf8
commit 4f95bf08ad
59 changed files with 475 additions and 423 deletions
+4 -4
View File
@@ -86,9 +86,9 @@ const RectF *RageTexture::GetTextureCoordRect( int iFrameNo ) const
class LunaRageTexture: public Luna<RageTexture>
{
public:
static int position( T* p, lua_State *L ) { p->SetPosition( FArg(1) ); return 0; }
static int loop( T* p, lua_State *L ) { p->SetLooping( BIArg(1) ); return 0; }
static int rate( T* p, lua_State *L ) { p->SetPlaybackRate( FArg(1) ); return 0; }
static int position( T* p, lua_State *L ) { p->SetPosition( FArg(1) ); COMMON_RETURN_SELF; }
static int loop( T* p, lua_State *L ) { p->SetLooping( BIArg(1) ); COMMON_RETURN_SELF; }
static int rate( T* p, lua_State *L ) { p->SetPlaybackRate( FArg(1) ); COMMON_RETURN_SELF; }
static int GetTextureCoordRect( T* p, lua_State *L )
{
const RectF *pRect = p->GetTextureCoordRect( IArg(1) );
@@ -106,7 +106,7 @@ public:
static int Reload(T* p, lua_State* L)
{
p->Reload();
return 0;
COMMON_RETURN_SELF;
}
LunaRageTexture()