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
+5 -5
View File
@@ -795,19 +795,19 @@ public:
float fVolume = FArg(1);
float fDurationSeconds = FArg(2);
p->DimMusic( fVolume, fDurationSeconds );
return 0;
COMMON_RETURN_SELF;
}
static int PlayOnce( T* p, lua_State *L )
{
RString sPath = SArg(1);
p->PlayOnce( sPath );
return 0;
COMMON_RETURN_SELF;
}
static int PlayAnnouncer( T* p, lua_State *L )
{
RString sPath = SArg(1);
p->PlayOnceFromAnnouncer( sPath );
return 0;
COMMON_RETURN_SELF;
}
static int GetPlayerBalance( T* p, lua_State *L )
{
@@ -847,10 +847,10 @@ public:
}
p->PlayMusic(musicPath, NULL, loop, musicStart, musicLength,
fadeIn, fadeOut, alignBeat, applyRate);
return 0;
COMMON_RETURN_SELF;
}
static int StopMusic( T* p, lua_State *L ) { p->StopMusic(); return 0; }
static int StopMusic( T* p, lua_State *L ) { p->StopMusic(); COMMON_RETURN_SELF; }
static int IsTimingDelayed( T* p, lua_State *L ) { lua_pushboolean( L, g_Playing->m_bTimingDelayed ); return 1; }
LunaGameSoundManager()