osu-ds/source/Beatmaps/BeatmapElements.h
KonPet 183228e28e Change stuff to make it build
Removed the arm7 section
Changed the makefile to only use the arm9 stuff
Epicpkmn: Fix source/Graphics/GraphicsManager.cpp

Co-Authored-By: Pk11 <epicpkmn11@outlook.com>
Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
2021-10-21 00:03:39 +02:00

54 lines
939 B
C++

#include <nds.h>
#include <vector>
#include "Helpers/MathHelper.h"
#include "System/GameClock.h"
#ifndef __BEATMAPELEMENTS_H__
#define __BEATMAPELEMENTS_H__
using namespace std;
typedef struct {
s32 Time;
float BeatTime;
u8 SampleSetId;
} TimingPoint;
typedef struct {
s32 StartTime;
s32 EndTime;
} BreakPoint;
class BeatmapElements
{
public:
static BeatmapElements& Element() { return sInstance; }
const TimingPoint& GetTimingPoint(s32 time);
const TimingPoint& GetTimingPoint();
const bool IsBreak();
rgb GetNextColour();
void AddTimingPoint(s32 time, float beattime, u8 samplesetid);
void AddBreakPoint(s32 start, s32 end);
void ResetColours(bool fill);
protected:
static BeatmapElements sInstance;
vector<TimingPoint> mTimingPoints;
vector<BreakPoint> mBreakPoints;
vector<rgb> mColours;
u32 mCurrentColour;
private:
BeatmapElements() {}
~BeatmapElements() {}
};
#endif