From 2e47674b22f22f7b477b1f98f8c975c373e6a7ef Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 2 Apr 2005 06:13:58 +0000 Subject: [PATCH] add Lua functions --- stepmania/src/Difficulty.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/Difficulty.cpp b/stepmania/src/Difficulty.cpp index 991de43d55..77eb10cb83 100644 --- a/stepmania/src/Difficulty.cpp +++ b/stepmania/src/Difficulty.cpp @@ -16,6 +16,8 @@ static const CString DifficultyNames[NUM_DIFFICULTIES] = { XToString( Difficulty, NUM_DIFFICULTIES ); XToThemedString( Difficulty, NUM_DIFFICULTIES ); +LuaFunction_Int( DifficultyToThemedString, DifficultyToThemedString((Difficulty)a1) ); + /* We prefer the above names; recognize a number of others, too. (They'l * get normalized when written to SMs, etc.) */ Difficulty StringToDifficulty( const CString& sDC ) @@ -70,6 +72,8 @@ XToString( CourseDifficulty, NUM_DIFFICULTIES ); XToThemedString( CourseDifficulty, NUM_DIFFICULTIES ); StringToX( CourseDifficulty ); +LuaFunction_Int( CourseDifficultyToThemedString, CourseDifficultyToThemedString((CourseDifficulty)a1) ); + CourseDifficulty GetNextShownCourseDifficulty( CourseDifficulty cd ) { for( CourseDifficulty d=(CourseDifficulty)(cd+1); d