Removing accidentally duplicated lua methods, un-needed SetGrooveStatsHash method (that's getting handled in a different PR)
This commit is contained in:
@@ -430,16 +430,6 @@ void SetMeasureInfo(StepsTagInfo& info)
|
|||||||
info.ssc_format= true;
|
info.ssc_format= true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetGrooveStatsHash(StepsTagInfo& info)
|
|
||||||
{
|
|
||||||
if (info.from_cache || info.for_load_edit)
|
|
||||||
{
|
|
||||||
RString value = (*info.params)[1];
|
|
||||||
info.steps->SetCachedGrooveStatsHash(value);
|
|
||||||
}
|
|
||||||
info.ssc_format = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetCredit(StepsTagInfo& info)
|
void SetCredit(StepsTagInfo& info)
|
||||||
{
|
{
|
||||||
info.steps->SetCredit((*info.params)[1]);
|
info.steps->SetCredit((*info.params)[1]);
|
||||||
|
|||||||
@@ -987,40 +987,6 @@ public:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int GetNPSPerMeasure(T *p, lua_State *L)
|
|
||||||
{
|
|
||||||
PlayerNumber pn = PLAYER_1;
|
|
||||||
if (!lua_isnil(L, 1)) {
|
|
||||||
pn = Enum::Check<PlayerNumber>(L, 1);
|
|
||||||
}
|
|
||||||
MeasureInfo &ts = const_cast<MeasureInfo &>(p->GetMeasureInfo(pn));
|
|
||||||
LuaHelpers::CreateTableFromArray(ts.npsPerMeasure, L);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int GetNotesPerMeasure(T *p, lua_State * L)
|
|
||||||
{
|
|
||||||
PlayerNumber pn = PLAYER_1;
|
|
||||||
if (!lua_isnil(L, 1)) {
|
|
||||||
pn = Enum::Check<PlayerNumber>(L, 1);
|
|
||||||
}
|
|
||||||
MeasureInfo &ts = const_cast<MeasureInfo &>(p->GetMeasureInfo(pn));
|
|
||||||
LuaHelpers::CreateTableFromArray(ts.notesPerMeasure, L);
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int GetPeakNPS(T *p, lua_State *L)
|
|
||||||
{
|
|
||||||
PlayerNumber pn = PLAYER_1;
|
|
||||||
if (!lua_isnil(L, 1)) {
|
|
||||||
pn = Enum::Check<PlayerNumber>(L, 1);
|
|
||||||
}
|
|
||||||
MeasureInfo &ts = const_cast<MeasureInfo &>(p->GetMeasureInfo(pn));
|
|
||||||
lua_pushnumber(L, ts.peakNps);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int GetColumnCues(T *p, lua_State*L)
|
static int GetColumnCues(T *p, lua_State*L)
|
||||||
{
|
{
|
||||||
float minDuration = 1.5;
|
float minDuration = 1.5;
|
||||||
|
|||||||
Reference in New Issue
Block a user