update Stage
This commit is contained in:
@@ -421,18 +421,9 @@ static const char *StageNames[] = {
|
||||
"Event",
|
||||
"Demo",
|
||||
};
|
||||
XToString( Stage, NUM_STAGES );
|
||||
static void LuaStage(lua_State* L)
|
||||
{
|
||||
FOREACH_Stage( st )
|
||||
{
|
||||
RString s = StageNames[st];
|
||||
s.MakeUpper();
|
||||
LUA->SetGlobal( "STAGE_"+s, st );
|
||||
}
|
||||
}
|
||||
REGISTER_WITH_LUA_FUNCTION( LuaStage );
|
||||
XToString( Stage, NUM_Stage );
|
||||
LuaXToString( Stage );
|
||||
LuaXType( Stage, NUM_Stage, "Stage_" );
|
||||
|
||||
|
||||
static const char *MultiPlayerStatusNames[] = {
|
||||
|
||||
@@ -431,11 +431,12 @@ enum Stage
|
||||
STAGE_ENDLESS,
|
||||
STAGE_EVENT,
|
||||
STAGE_DEMO,
|
||||
NUM_STAGES,
|
||||
NUM_Stage,
|
||||
STAGE_INVALID,
|
||||
};
|
||||
#define FOREACH_Stage( s ) FOREACH_ENUM( Stage, NUM_STAGES, s )
|
||||
#define FOREACH_Stage( s ) FOREACH_ENUM( Stage, NUM_Stage, s )
|
||||
const RString& StageToString( Stage s );
|
||||
LuaDeclareType( Stage );
|
||||
|
||||
|
||||
enum ProfileLoadResult
|
||||
|
||||
@@ -1951,7 +1951,7 @@ public:
|
||||
DEFINE_METHOD( IsExtraStage, IsExtraStage() )
|
||||
DEFINE_METHOD( IsExtraStage2, IsExtraStage2() )
|
||||
DEFINE_METHOD( GetCurrentStage, GetCurrentStage() )
|
||||
DEFINE_METHOD( IsStagePossible, IsStagePossible((Stage)IArg(1)) )
|
||||
DEFINE_METHOD( IsStagePossible, IsStagePossible( Enum::Check<Stage>(L, 1)) )
|
||||
DEFINE_METHOD( HasEarnedExtraStage, HasEarnedExtraStage() )
|
||||
DEFINE_METHOD( GetEasiestStepsDifficulty, GetEasiestStepsDifficulty() )
|
||||
DEFINE_METHOD( IsEventMode, IsEventMode() )
|
||||
|
||||
Reference in New Issue
Block a user