added GetPlayerName(pn) Lua binding to PROFILEMAN

This commit is contained in:
AJ Kelly
2012-06-21 21:05:59 -05:00
parent acb64bb4e5
commit 11f670a303
2 changed files with 1994 additions and 1988 deletions
+4
View File
@@ -8,6 +8,10 @@ ________________________________________________________________________________
StepMania 5.0 ???? ?? | 20120???
--------------------------------------------------------------------------------
2012/06/21
----------
* [ProfileManager] Added GetPlayerName(pn) Lua binding. [AJ]
2012/06/05
----------
* [GrooveRadar] Added SetFromValues(pn,{f1,f2,f3,f4,f5}) Lua binding. [AJ]
+2
View File
@@ -840,6 +840,7 @@ public:
static int IsSongNew( T* p, lua_State *L ) { lua_pushboolean(L, p->IsSongNew(Luna<Song>::check(L,1)) ); return 1; }
static int ProfileWasLoadedFromMemoryCard( T* p, lua_State *L ) { lua_pushboolean(L, p->ProfileWasLoadedFromMemoryCard(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
static int LastLoadWasTamperedOrCorrupt( T* p, lua_State *L ) { lua_pushboolean(L, p->LastLoadWasTamperedOrCorrupt(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
static int GetPlayerName( T* p, lua_State *L ) { PlayerNumber pn = Enum::Check<PlayerNumber>(L, 1); lua_pushstring(L, p->GetPlayerName(pn)); return 1; }
LunaProfileManager()
{
@@ -856,6 +857,7 @@ public:
ADD_METHOD( IsSongNew );
ADD_METHOD( ProfileWasLoadedFromMemoryCard );
ADD_METHOD( LastLoadWasTamperedOrCorrupt );
ADD_METHOD( GetPlayerName );
}
};