Function chaining for actors and singletons.
This commit is contained in:
@@ -122,8 +122,8 @@ void RollingNumbers::UpdateText()
|
||||
class LunaRollingNumbers: public Luna<RollingNumbers>
|
||||
{
|
||||
public:
|
||||
static int Load( T* p, lua_State *L ) { p->Load(SArg(1)); return 0; }
|
||||
static int targetnumber( T* p, lua_State *L ) { p->SetTargetNumber( FArg(1) ); return 0; }
|
||||
static int Load( T* p, lua_State *L ) { p->Load(SArg(1)); COMMON_RETURN_SELF; }
|
||||
static int targetnumber( T* p, lua_State *L ) { p->SetTargetNumber( FArg(1) ); COMMON_RETURN_SELF; }
|
||||
|
||||
LunaRollingNumbers()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user