diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index 27f7ccaaea..cb9dea5217 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -14,6 +14,7 @@ _____________________________________________________________________________ * [MusicWheel] added UseSectionsWithPreferredGroup metric (allows sm-ssc to display all song groups if you use the songgroup GameCommand, instead of no groups.) +* [Character] add GetCharacterDir() and GetCharacterID() Lua bindings. ================================================================================ sm-ssc v1.0 Public Beta 4 | 20100531 diff --git a/src/Character.cpp b/src/Character.cpp index f433fdf640..e158089ffc 100644 --- a/src/Character.cpp +++ b/src/Character.cpp @@ -212,6 +212,8 @@ public: static int GetRestAnimationPath( T* p, lua_State *L ) { lua_pushstring(L, p->GetRestAnimationPath() ); return 1; } static int GetWarmUpAnimationPath( T* p, lua_State *L ) { lua_pushstring(L, p->GetWarmUpAnimationPath() ); return 1; } static int GetDanceAnimationPath( T* p, lua_State *L ) { lua_pushstring(L, p->GetDanceAnimationPath() ); return 1; } + static int GetCharacterDir( T* p, lua_State *L ) { lua_pushstring(L, p->m_sCharDir ); return 1; } + static int GetCharacterID( T* p, lua_State *L ) { lua_pushstring(L, p->m_sCharacterID ); return 1; } LunaCharacter() { @@ -224,6 +226,8 @@ public: ADD_METHOD( GetRestAnimationPath ); ADD_METHOD( GetWarmUpAnimationPath ); ADD_METHOD( GetDanceAnimationPath ); + ADD_METHOD( GetCharacterDir ); + ADD_METHOD( GetCharacterID ); } };