2021-06-23 21:18:33 +02:00
|
|
|
#ifndef CLASSICMAPCREATOR_H
|
|
|
|
#define CLASSICMAPCREATOR_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2021-08-05 20:59:48 +02:00
|
|
|
#include "tools/mathutils.h"
|
2021-09-14 21:02:23 +02:00
|
|
|
#include "core/note.h"
|
|
|
|
|
2021-06-23 21:18:33 +02:00
|
|
|
#include "classicgraphicsmanager.h"
|
|
|
|
|
|
|
|
struct Beatmap
|
|
|
|
{
|
2021-07-21 20:15:56 +02:00
|
|
|
std::vector<ClassicNote*> notes;
|
2021-06-23 21:18:33 +02:00
|
|
|
microsec visibility_offset;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ClassicMapCreator
|
|
|
|
{
|
|
|
|
public:
|
2021-08-09 20:59:40 +02:00
|
|
|
explicit ClassicMapCreator(const std::shared_ptr<ClassicGraphicsManager>& manager);
|
2021-06-23 21:18:33 +02:00
|
|
|
|
|
|
|
Beatmap createBeatmap(const std::string& filepath) const;
|
|
|
|
|
|
|
|
private:
|
2021-08-09 20:59:40 +02:00
|
|
|
const std::shared_ptr<ClassicGraphicsManager> _graphics_manager;
|
2021-06-23 21:18:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLASSICMAPCREATOR_H
|