33 lines
526 B
C++
33 lines
526 B
C++
#ifndef MEASURE_INFO_H
|
|
#define MEASURE_INFO_H
|
|
|
|
#include "GameConstantsAndTypes.h"
|
|
#include "NoteData.h"
|
|
|
|
struct MeasureInfo
|
|
{
|
|
int measureCount;
|
|
float peakNps;
|
|
std::vector<float> npsPerMeasure;
|
|
std::vector<int> notesPerMeasure;
|
|
|
|
MeasureInfo()
|
|
{
|
|
Zero();
|
|
}
|
|
|
|
void Zero()
|
|
{
|
|
measureCount = 0;
|
|
peakNps = 0;
|
|
npsPerMeasure.clear();
|
|
notesPerMeasure.clear();
|
|
}
|
|
|
|
RString ToString() const;
|
|
void FromString(const RString& sValues );
|
|
static void CalculateMeasureInfo(const NoteData &in, MeasureInfo &out);
|
|
};
|
|
|
|
#endif
|