Function chaining for actors and singletons.
This commit is contained in:
+4
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user