add Lua functions

This commit is contained in:
Chris Danford
2005-04-02 06:13:58 +00:00
parent 7bc684bc52
commit 2e47674b22
+4
View File
@@ -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<NUM_DIFFICULTIES; ((int&)d)++ )