mirror of
https://github.com/echojc/osu-ds.git
synced 2025-06-19 01:15:44 -04:00

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>
54 lines
939 B
C++
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
|
|
|