Skip to content

Commit

Permalink
Add lua access to Gamestate PreferredStepsType
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 13, 2020
1 parent c569e4e commit f86ac17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Etterna/Singletons/GameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1879,6 +1879,12 @@ class LunaGameState : public Luna<GameState>
LuaHelpers::CreateTableFromArray(p->timingscales, L);
return 1;
}
static int GetPreferredStepsType(T* p, lua_State* L)
{
auto st = p->m_PreferredStepsType;
LuaHelpers::Push(L, st);
return 1;
}

DEFINE_METHOD(GetEtternaVersion, GetEtternaVersion())
DEFINE_METHOD(IsPracticeMode, IsPracticeMode())
Expand Down Expand Up @@ -1971,6 +1977,7 @@ class LunaGameState : public Luna<GameState>
ADD_METHOD(IsPracticeMode);
ADD_METHOD(SetPracticeMode);
ADD_METHOD(GetTimingScales);
ADD_METHOD(GetPreferredStepsType);
}
};

Expand Down

0 comments on commit f86ac17

Please sign in to comment.