[GameState] Added ApplyStageModifiers(player,string) Lua binding.
This commit is contained in:
@@ -10,8 +10,9 @@ StepMania 5.0 $next | 201110??
|
|||||||
|
|
||||||
2011/09/30
|
2011/09/30
|
||||||
----------
|
----------
|
||||||
* [GameState] Added CurrentOptionsDisqualifyPlayer(player) Lua binding. [AJ]
|
* [GameState] Added CurrentOptionsDisqualifyPlayer(player),
|
||||||
* [GameState] Added ApplyPreferredModifiers(player,string) Lua binding. [AJ]
|
ApplyPreferredModifiers(player,string) and ApplyStageModifiers(player,string)
|
||||||
|
Lua bindings. [AJ]
|
||||||
|
|
||||||
2011/09/29
|
2011/09/29
|
||||||
----------
|
----------
|
||||||
|
|||||||
@@ -2308,6 +2308,11 @@ public:
|
|||||||
lua_pushstring(L, so.GetString());
|
lua_pushstring(L, so.GetString());
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
static int ApplyStageModifiers( T* p, lua_State *L )
|
||||||
|
{
|
||||||
|
p->ApplyStageModifiers( Enum::Check<PlayerNumber>(L, 1), SArg(2) );
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
static int ApplyPreferredModifiers( T* p, lua_State *L )
|
static int ApplyPreferredModifiers( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
p->ApplyPreferredModifiers( Enum::Check<PlayerNumber>(L, 1), SArg(2) );
|
p->ApplyPreferredModifiers( Enum::Check<PlayerNumber>(L, 1), SArg(2) );
|
||||||
@@ -2516,6 +2521,7 @@ public:
|
|||||||
ADD_METHOD( GetSongOptions );
|
ADD_METHOD( GetSongOptions );
|
||||||
ADD_METHOD( GetDefaultSongOptions );
|
ADD_METHOD( GetDefaultSongOptions );
|
||||||
ADD_METHOD( ApplyPreferredModifiers );
|
ADD_METHOD( ApplyPreferredModifiers );
|
||||||
|
ADD_METHOD( ApplyStageModifiers );
|
||||||
ADD_METHOD( ClearStageModifiersIllegalForCourse );
|
ADD_METHOD( ClearStageModifiersIllegalForCourse );
|
||||||
ADD_METHOD( SetSongOptions );
|
ADD_METHOD( SetSongOptions );
|
||||||
ADD_METHOD( IsWinner );
|
ADD_METHOD( IsWinner );
|
||||||
|
|||||||
Reference in New Issue
Block a user