added GetPlayerName(pn) Lua binding to PROFILEMAN
This commit is contained in:
@@ -8,6 +8,10 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 ???? ?? | 20120???
|
StepMania 5.0 ???? ?? | 20120???
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2012/06/21
|
||||||
|
----------
|
||||||
|
* [ProfileManager] Added GetPlayerName(pn) Lua binding. [AJ]
|
||||||
|
|
||||||
2012/06/05
|
2012/06/05
|
||||||
----------
|
----------
|
||||||
* [GrooveRadar] Added SetFromValues(pn,{f1,f2,f3,f4,f5}) Lua binding. [AJ]
|
* [GrooveRadar] Added SetFromValues(pn,{f1,f2,f3,f4,f5}) Lua binding. [AJ]
|
||||||
|
|||||||
@@ -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 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 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 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()
|
LunaProfileManager()
|
||||||
{
|
{
|
||||||
@@ -856,6 +857,7 @@ public:
|
|||||||
ADD_METHOD( IsSongNew );
|
ADD_METHOD( IsSongNew );
|
||||||
ADD_METHOD( ProfileWasLoadedFromMemoryCard );
|
ADD_METHOD( ProfileWasLoadedFromMemoryCard );
|
||||||
ADD_METHOD( LastLoadWasTamperedOrCorrupt );
|
ADD_METHOD( LastLoadWasTamperedOrCorrupt );
|
||||||
|
ADD_METHOD( GetPlayerName );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user